XHTML tutorial

Posted on May 12, 2014, 10:30 am by about-dev.com

What is XHTML?
XHTML stands for Extensible Hypertext Markup Language and as it's name suggests is the markup language that help us build a website's page structure, "the skeleton". It is a improved version of HTMLXHTML became a W3C recommendation in 2000. It was created by combinaning the XML and the HTML

So, XHTML follows all the HTML specifications (the same steps that I presented you here), but adds some rules, inherited from XML:
Rule 1: All tags must be written in lowercase letters. 

Rule 2: All tags must be nested correctly.

Rule 3: Every tag must have an end tag.

Rule 4: Empty tags must end.

Rule 5: Attributes values must be surrounded by quotation marks.

Rule 6: Attributes must be specified in name-value pairs

Rule 7: Tag names and attributes are case-sensitive

Rule 8: Every special character must be specified using special symbols.

Rule 9: Separate CSS content and JavaScript content from the HTML => put them into separate files and include them when needed

A webpage "skeleton" build with XHTML follows the same steps as with HTML, so the mandatory page structure is the same, the difference consists of other DTD and the rules listed above. The current XHTML version is 1.0 and the valid DTD's are listed here.

Related articles:

Leave a Comment:


Blog Search

Popular Blog Categories


Want to be informed about latest posts? Subscribe to our newsletter