Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1
577

XHTML


A.XHTML Reference

XHTML uses the tags and attributes of HTMLalong with
the syntax of XML. For the most part, you will use the same tags and attri-
butes in HTML and XHTML; the major change is the syntax and additional
restrictions in XHTML. This section provides an introduction to XML syntax
and a detailed list of XHTML tags and attributes.
You will notice that a number of XHTML elements and attributes are depre-
cated, which means that they are currently supported but will be removed from
the language in the future. Most of the deprecated elements relate to presenta-
tion features such as alignment text configuration. The W3C recommends using
CSS to replace the functionality of the deprecated components. This section will
be helpful as a reference as you design Web pages. It contains five major areas:
●XML Syntax
●General XHTML 1.0 Syntax Guidelines
●Basic Tags
●Header Section Tags
●Body Section Tags

A.1 XML Syntax


An XML document must be well formed. A well-formed document is a docu-
ment that adheres to the syntax rules of the language. Here are the key syntax
rules of XML:
●XML is case-sensitive.
●An XML document must contain one or more elements.
●All XML elements must have an opening tag and a closing tag. All tags
are enclosed in angle brackets.

APPENDIX


A

Free download pdf