Wednesday, October 13, 2010

XHTML Syntax

XHTML syntax is very similar to HTML syntax, and almost all HTML elements are valid in XHTML as well. But when you write an XHTML document must pay a little more attention to your HTML document to XHTML compliance.

Here are important things to remember when writing a new XHTML document, or edit the HTML document, an XHTML document:
  • document is a XHTML DOCTYPE declaration at the top of the document.
  • Attribute names must be in lower case
  • All XHTML tags will have their end tags.
  • All the attribute values must be quoted.
  • Id attribute replaces the name attribute.
  • All tags must be properly nested

No comments:

Post a Comment