PDA

View Full Version : Differences Between XHTML And HTML New updates June 2011



Vuhelper
05-27-2011, 03:36 AM
XHTML is not very different from the HTML 4.01 standard
In addition, you should start NOW to write your HTML code in lowercase letters, and NEVER skip closing tags (like </p>).
http://powertoearnmoney.com/wp-content/uploads/2009/12/xhtml.gif
The Most Important Differences:

XHTML elements must be properly nested
XHTML elements must always be closed
XHTML elements must be in lowercase
XHTML documents must have one root element


XHTML Elements Must Always Be Closed

This is wrong:

<p>This is a book
<p>This is another book


This is correct:

<p>This is a book</p>
<p>This is another book</p>