SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 363 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Expanding into XHTML
The latest version of HTML is known as XHTML, short for Extensible HTML. XHTML is based on XML
and, as such, has a more rigid syntax than HTML. For example, tags that do not enclose content??”the socalled
empty tags??”are written differently. In HTML, a line-break tag is


whereas in XHTML, the line-break tag is


Notice the additional space and the closing slash. Other differences include an opening XML declaration, as
well as a specific doctype tag placed before the opening tag. All tags must be in lowercase, and
all attribute values must appear in quotes (but not necessarily lowercase) as follows:

Dreamweaver makes it easy to code in XHTML and even to convert existing pages from HTML to XHTML.
To work in XHTML from the ground up, set the Document Type (DTD) option to one of the XHTML options
available on the New Document category of Preferences (available when you choose Edit ??? Preferences on
Windows or Dreamweaver ??? Preferences on a Mac). Selecting this option automatically sets an identical
option on the New Document dialog box (File ??? New), which you can change on a case-by-case basis, if
necessary. After a document has been set as an XHTML file, all the tags are written in the proper style.


Pages:
351352353354355356357358359360361362 363 364365366367368369370371372373374375