Web servers - CHAPTER 3 WEB VOCABULARIES Strict XHTML Documents
CHAPTER 3 WEB VOCABULARIES Strict XHTML Documents Strict XHTML documents allow you to work with only structural tags, such as headings (
,
,
,
,
,
), paragraphs (
,
,
,
), paragraphs (
,
), paragraphs (
), and lists (
- ,
- ,
- ). All of the presentational elements and attributes, such as align and bgcolor, are removed. The XHTML 1.1 specification has also completely removed presentational markup. In both strict and XHTML 1.1 document types, you should always use stylesheets to control how your document appears in various browsers. Let s look at a sample of a strict XHTML document:
Mars Travel
Visits to a faraway place
Your spacecraft
Your spacecraft is the Mars Explorer, which provides the latest in passenger luxury and travel speed.
You can find this file saved as marsstrict.htm with your resources. The strict XHTML document is much shorter and doesn t contain any presentational markup. Instead, it contains a link to a stylesheet called styles.css, which includes the presentational elements. It also replaces the presentational element with the structural element. If you view the file in a web browser, it will look much the same as the first XHTML document. The styles.css stylesheet contains the following presentational elements: h1 { font-weight: bold; font-size: 24px; text-align: center; } h2 { font-weight: bold; font-size: 20px;
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.