XHTML
What is XHTML?
Extensible Hypertext Markup Language (XHTML) is an upgraded version of HTML. It was developed to work with new technologies such as XML and create a cleaner, more uniform implimentation of HTML.
The Rules
- All tags must be lowercase.
- All tags must be nested properly.
-
Web pages must be well formed. This means including the html, head, and body tags
in the proper order.
( For an example go to: The Basics / Page Outline ) - All tags must be closed.
- The id attribute should replace the name attribute.
- Tables should only be used for tabular data. (This is not a new rule but it is reinforced in XHTML.)
- CSS should be used for all decorative design. This includes backgrounds, fonts, and widths.
- A web page should have a DOCTYPE at the top of its page.
DOCTYPES
A DOCTYPE (document type declaration) is a way to let a browser know what version of HTML is being used. It has a dramatic affect on the way a web page works and is rendered. There are four types of DOCTYPES: strict, transitional, frameset, and dtd. Not all types work with all versions of HTML or XHTML.
