The format is like:
element contentXHTML Documents Must be Well Formed
Since XHTML is based on XML, all XHTML documents must adhere to the
asic XML syntax and be well formed. The document must also have a
DOCTYPE declaration.
Tags Must be Closed!
All open tags must be closed. Even if it is an empty tag like "
", it must be used
in the self-closed form like "
". Note the extra space before the slash. It's not
mandatory, but makes things work with some older browsers. If you can validate
within your editor, make it a practice to do that. Also cultivate the habit of closing a
tag that you start immediately??”even before you put in the content. That will ensure
you don't miss closing it later on!
Elements Must be Properly Nested
You cannot start a new paragraph until you complete the previous one. You must
close tags to ensure correct nesting. Overlapping is not allowed. So the following is
not valid in XHTML MP:
Pizzas are good.
It should be written as:
Pizzas are good.
Chapter 2
[ 39 ]
Elements and Attributes Must be in Lowercase
XHTML MP is case sensitive.
Pages:
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70