In this section, I will define several basic tags that should be included in every HTML document.
Note: Tags are not case-sensitive.
This tag gives the version information for the document (what version of HTML you're using) and the location of the DTD for that version. The tag goes at the very beginning of the HTML document, before even the <HTML> tag, and has no closing tag. HTML 4.0 has three versions.
Samples:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">
This tag should be used at the beginning of every HTML document after the document-type declaration. attributes
Back to top
This tag is used at the beginning of the HTML document just after the <HTML> tag. This tag defines the head of the HTML document. The title is generally contained within this element. Attributes
Back to top
This tag is used to define the title of the page. It must appear within the head. Always close this tag by typing </TITLE>. The title is often displayed at the top of your web browser (in the title bar). When you bookmark a web page, the title becomes the bookmark. Make sure the title is relevent to your web page's contents. attributes
Back to top
This tag provides meta data about the document. It can be used to give the equivalent of HTTP headers, but it is most often used for search purposes, such as specifying search keywords and providing a description of the page.
Samples:
<META NAME="keywords" CONTENT="anime, manga, MKR, Magic Knight Rayearth, Rayearth, Magic Knight, CLAMP, Hikaru, Fuu, Umi, Cephiro"> <META NAME="description" CONTENT="A nonexistant page about CLAMP's Magic Knight Rayearth manga"> <META NAME="author" CONTENT="somebody"> |
This tag is used to indicate the body, or text, of an HTML document. Everything that will show up on the web page is part of this element. Attributes
Back to top