XHTML: Lowercase Tags

In HTML, tags and attributes can be written in uppercase or lowercase characters. In XHTML, all tag names and attribute names MUST be written in lowercase.

Do not compose this way:
<BODY>
<P>This is a paragraph</P>
</BODY>
This is the correct way:
<body>
<p>This is a paragraph</p>
</body>

This difference is necessary because XML is case-sensitive e.g. <p> and <P> are different tags.

Back button Table of Contents Next button