Tutorial: Adding Text to a XHTML Document
Author: Martin Warning
Year: 2007
Page: 1
Introduction
Most XHTML documents are focussed on displaying text to a user and as such we need elements to identify the different types of text in an XHTML document. There are several changes from HTML with the biggest being the depreciation of the <font> element. This element can no longer be used and is replaced with the <span> element in XHTML.
Structure only
In XHTML documents the XHTML elements are used for structure, not for formatting. The formatting will instead be done with stylesheets. This means that elements can only be used to indicate what the containing text signifies structuraly. For example the heading elements can only be used to indicate a title, not to create bigger test.
Index:
Page 1: Introduction
Page 2: Paragraphs: <p>
Page 3: Bold and Italic
Page 4: Big and Small
Page 5: Superscript and Subscript
Page 6: Abbreviations
Page 7: <pre>
