XHTML: HTML to XHTML
In this tutorial I will:
•Explain five rules to make that switch to XHTML.
W3C has noted a few differences from HTML 4.0 and XHTML. All of these changes were made to make websites around the globe to meet standards. There are five main changes…
All Tags Are Lowercase
-
<!– WRONG –>
-
-
<!– RIGHT –>
All ‘One-Line’ Tags Are ‘Self-Closed’
-
<!– WRONG –>
-
<br>
-
-
<!– RIGHT –>
-
<br />
All Documents Have One Root
-
<!– WRONG –>
-
-
…
-
-
…
-
…
-
-
…
-
-
<!– RIGHT –>
-
-
…
-
…
All Tags Are ‘Nested’
-
<!– WRONG –>
-
<strong><em>TEXT</em></strong>
-
-
<!– RIGHT –>
-
<strong><em>TEXT</em></strong>
The last primary rule is The Use Of DTDs. We have wrote a tutorial dedicated to this fifth rule and can be found here.
























