Most real pages will have a title and a body. Here is an example of a more typical template: This template generates a page that looks just like the first one, except that it will be entitled "A Greeting".Greeting () TITLE "A Greeting" BODY TEXT "Hello world!" The template has two expressions: a TITLE expression and a BODY expression. The TITLE operator takes one argument, which becomes the title of the page. It corresponds to (in fact, generates) the HTML title tag. The BODY operator is one of a group that can contain other expressions. It corresponds to the HTML body tag. Whatever occurs within it will occur within the body of the HTML page.
Here, a TEXT expression occurs within the
BODY expression. When one expression is contained in another,
the structure editor automatically indents the contained expression. |
|