Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

XHTML Tips and Tricks

Share this post!
 Vote this!

This chapter lists out various tips and tricks for you which should be taken care while writing an XHTML document.

The XML Declaration:

An XML declaration is not required in all XHTML documents. XHTML document authors are strongly encouraged to use XML declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16.

Empty Elements:

Include a space before the trailing / and > of empty elements, e.g. <br />, <hr /> and <img src="/html/xhtml.gif" alt="xhtml" />.  more...

0 comments:

Post a Comment