Prev | Current Page 439 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

The keyword in the tag is known as Element Name.
< div > content < /div >
In the preceding example, the plain text content is included in the element with name div . The div
element is used to define blocks inside the page and is one of the most frequent used structures. Note
that the end tag replicates exactly the start tag except for the use of the slash symbol ( /) just after the
opening angular bracket.
< br / >
Chapter 9: Building Websites with HaXe
229
In this case, the tag is empty because it does not contain other contents (and can ??™ t really do that) and it is
differentiated by using the slash just before the closing bracket. The br tag adds a line break in the text.
Note that new lines are not the same as paragraphs that must be defined using the p element.
An element can also possess additional information in the form of attributes. Attributes are defined in
the opening tag and in the empty tag in the form of space separated key - value pairs. Each pair is
composed by an attribute name, an equal sign, and a value enclosed in double quotes.


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