Document Type
Every HTML document must commence with a DOCTYPE declaration of which specifies which version of HTML might be used to create your document. (DOCTYPE is short for document type. ). You'll find three possible DOCTYPE declarations with regard to HTML 4. 0 documents, one for each in the three flavors of HTML:
- HTML 4.0 Transitional
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
- HTML 4.0 Strict
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
- HTML 4.0 Frameset
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
"http://www.w3.org/TR/REC-html40/frameset.dtd">
Specifying HTML Page
Following the specification of version of HTML, an element have to be created to hold the rest of the content markup in the actual page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
</html>
Standard Attributes
The <html> tag supports the following standard attributes:Attribute | Value | Description |
Dir | rtl ltr | Specifies the text direction for the content in an element |
Lang | language_code | Specifies a language code for the content in an element |
xml:lang | language_code | Specifies a language code for the content in an element, in XHTML documents |
The actual xmlns attribute specifies the xml namespace for any document.
XHTML
The particular Extensible Hypertext Markup Language, or XHTML, is a markup language who has the same depth with expression as HTML, but also conforms to XML format. While HTML prior in order to HTML 5 was defined as an application of Standard Generalized Markup Language (SGML), an incredibly flexible markup language, XHTML can be an application of XML, a more restrictive subset of SGML. An effective XHTML document, with the minimum of required tags:<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
No comments:
Post a Comment