Prev | Current Page 442 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Styles and formatting rules are completely delegated
to style sheets that can be embedded in the document or externally referenced. In this chapter, the HTML
strict flavor will be referred to with a small exception: The conventions used for empty tags and Boolean
attributes are those defined in XHTML.
The Document Type Definition contains an optional web address that contains a resource, a DTD file,
which fully describes the syntax of the current document.
After the DTD, the first element encountered is html ; it must be unique in the page and it represents the
root node that will contain every other element in the page. Inside the HTML element the two elements
head and body are declared. The first contains information that is used on the page as a whole; it can be
meta information like the character encoding that applies to the document where the most common is
UTF - 8, or the inclusion of external files that defines styles (CSS style sheets) and behaviors (JavaScript).
In the example, it contains the very least mandatory element title .


Pages:
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454