Chapter 1: Getting Started With HTML | |||||
XHTML Requirements
XHTML, the latest revision of HTML, adds another required element to your Web pages: the <!DOCTYPE> tag. This tag appears at the top of the file and identifies the file as an HTML document conforming to the XHTML requirements. If you were to create an XHTML-conforming document, it would look like the following:
The <!DOCTYPE> tag has three variations: Strict, Transitional, and Frameset. You declare which one you are using in the top of the file.
You might have noticed one more change from the HTML required elements: The <html> tag has some new attributes: xmlns, xml:lang, and lang. In HTML, you only have to include the <html> tag to identify the document as an HTML file, but XHTML requires that you use the xmlns attribute to link your document to the W3C's definition of XHTML, which continues to evolve. Below figure demonstrates how the XHTML page, created previously, would appear in the browser.
|
CeritaMelayu Cerita Indonesia Arab Cerita Negro Filiphino Japan Singapura Brunei Thai Brma Viatnam Bangla India Sri Lanka dan banyak lagi
Khamis, April 25
Chapter 1: Getting Started With HTML
Langgan:
Catat Ulasan (Atom)
Tiada ulasan:
Catat Ulasan