XHTML vs. HTML

January 21, 2009 by admin · Leave a Comment
Filed under: Template Mill Articles 

XHTML has slowly begun replacing standard HTML. The differences are not that major, but non computer devices such as cell phones and scaled down browsers handle XHTML much better than HTML.

One of the differences is that all of the tags must be in lower case, as compared to the older upper case coding. Other requirements include closing all tags, some older HTML tags are no longer accepted, all attributes and values for attributes must also be lowercase and encased in either single or double quotes.

The first line of average XHTML documents will and must contain one of the following exactly as seen below:

Strict -
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“>

Transitional -
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>

Working with some of the new web editors such as Dreamweaver and Expression Web will help you in developing compliant code and both programs offer tools for validating code. Dreamweaver offers browser compatibility checks as well.

All of the templates offered at Template Mill are validated XHTML 1.0 Strict and use tableless CSS coding for further search engine optimization.



Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!