< a href=???/page.html??? > link text < /a >
The preceding example marks the link text content as a hyperlink to the file page.html in the root of the
current website.
The HTML standard allows for a more flexible syntax that allows, among other things, to:
Indifferently use upper - and lowercase for element names and attributes.
Omit certain attribute values.
Use single quotes for attribute values (or no quotes at all when there is no ambiguity possible).
Avoid distinguishing between the empty elements syntax and the start - tag syntax (empty
tags do not have to be marked with the slash). The empty - tag format is not part of the HTML
standard at all, whereas it is from XHTML/XML. The browsers are very permissive on this side
and don ??™ t complain about this adoption and many common validators, applications written to
check the correctness of a document, do not consider this variation as an error.
Certain elements can be implicitly closed (like table cells).
In this chapter, you have chosen for a more XML - oriented syntax because it produces a clearer code,
which is easier to read and maintain and can be used easily in conjunction with tools that work with
XML contents.
Pages:
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452