Prev | Current Page 1063 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

It must exist in the head element.
Structural Elements
Structural elements are used to define sections in a document. They exist in two forms: block and inline.
In the first case the div element is used; a common application for div is, for example, to distinguish the
header section of a page, the main content area, and the footer section as illustrated in the following
example:
< html >
< head >
< title > Sample Page < /title >
< /head >
< body >
< div id=???header??? >
Header of the page goes here
< /div >
< div id=???main??? >
Content of the page
< /div >
< div id=???footer??? >
Footer goes here
< /div >
< /body >
< /html >
Appendix A: Semantic HTML
579
Note the use of the id attributes to label the sections. In the same page, no more than one element
with the same element id can exist. Each div will contain more elements like paragraphs, tables,
sub - blocks, and others.
The span element is used in the same way but to define sections inside a line of text. It is possible to
mark individual words with a class or an id attribute.


Pages:
1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075