CHAPTER 3 (Multiple domain web hosting) WEB VOCABULARIES In XHTML 1.1,

CHAPTER 3 WEB VOCABULARIES In XHTML 1.1, however, the W3C permits only the idattribute: Again, older browsers expect you to use the name attribute. Because of this, some XHTML 1.1 pages don t work in early browser versions. Nesting Tags The HTML language didn t specify how you should nest tags, so writing something like the following didn t cause an error:

A heading

This doesn t work in XHTML; you need to rewrite the code so the tags close in the correct order:

A heading

Character Encoding Specifying the document encoding is very important, and in some cases required, so that the document displays correctly within different web browsers. Document encoding defines a numeric value for each character. Different encoding schemes sometimes use these values in different ways. Most browsers and computers support ASCII encoding, which assigns values to the 128 most commonly used characters. These characters are compatible across different platforms. If you re using characters with values higher than 128, you must specify the character set so that the browser knows which character to display for a given value. Within XHTML, you can specify the character set that your document is using in several ways, including Using the XML declaration Using the element Using external means You can use any of these methods alone or in combination. Using all methods together ensures that the browser understands the document s encoding, even if it doesn t support that encoding. Again, including encoding declarations may confuse some older browsers. Let s look at each of the methods more closely. Specifying encoding using the XML declaration is very easy, and you ve seen it in the examples in Chapter 1: You can specify encoding in a tag by adding the following element to the section of your XHTML document:
If you are searching for cheap webhost for your web application, please visit
MySQL5 Web Hosting services.

Leave a Reply