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:
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375