• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter Six. XHTML: Restructuring the We... > Executive Summary: The Rules of XHTM...

Executive Summary: The Rules of XHTML

  • Open with the proper DOCTYPE and namespace.

  • Declare your content type using the META Content element.

  • Write all element and attribute names in lowercase.

  • Quote all attribute values.

  • Assign values to all attributes.

  • Close all tags.

  • Close “empty” tags with a space and a slash.

  • Do not put double dashes inside a comment.

  • Ensure that less-than and ampersand are < and &.

Viewed as a short list in this Executive Summary, the rules of XHTML look few and simple enough—and they are few and simple enough. One sadly dull additional point must be made before we move on to the good stuff.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint