html tags, html tutorial,html color codes,HTML codes,HTML valid,HTML color codes,HTML tutorial,HTML examples,html codes,HTML code?,HTML format,HTML text code?,HTML text codes,html web fonts,HTML Fonts,HTML Font Code,HTML font codes?, HTML Code Tutorial,html tags,,html tags chart,HTML Tags and Attributes,HTML syntax,,HTML Background,HTML code for a background,html reference,reference to HTML,HTML Reference examples,html href,HTML href Attribute,html table, HTML Table Basics.,html table color,html table border color,html table tags,html table border style,HTML Reference Guide, complete reference to HTML
Basic Structure:
- <!-- ..... -->
Specifies a comment. Anything between these tags will be skipped by the browser. - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 //EN">
This is the necessary first element of any HTML 3.2 compliant document. - <HTML>.....< /HTML>
Encloses the entire document. - <HEAD>.....< /HEAD>
Encloses the head of the document. The following optional tags are placed inside the head.- <TITLE>.....< /TITLE>
Indicates the title of the document that is used as the window caption. This is the second of the two required tags for any HTML 3.2 compliant document. - <BASE href="http://some.network/file.html">
Specifies the base URL of the document. This is used when dereferencing relative URLs in the page. - <BASE href="http://some.net/file.html" TARGET="...">
Also specifies the base target frame that all links will default to. See the LINK tag for possible values used in TARGET. - <META attribut1 attribute2>
This element can be used to specify name/value pairs describing various properties of the document. Below are some examples:
To have your page automatically reloaded every X seconds, use the following:
<META HTTP-EQUIV="REFRESH" CONTENT=X >
To have a different page automatically loaded after X seconds, use the following:
<META HTTP-EQUIV="REFRESH" CONTENT="X; URL=http://some.address/file.html">
To specify an expiration date for the page so that it will be reloaded after a certain date, use:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 23 Sep 1996 01:21:00 GMT">
To specify keywords for certain search services to use, do the following:
<META HTTP-EQUIV="Keywords" CONTENT="keyword1, keyword2, ...">
To specify a description of your page for certain search services to use, do the following:
<META HTTP-EQUIV="Description" CONTENT="Describe your site here...."> - <LINK attribute=" HREF="..." >
Currently this tag is not widely supported, however in the future browsers will use a list of these tags to generate a navigation bar for the site. Without browser support, this tag can still be useful for site maintenance.- Attributes:
- REL="..."--Specifies the type of relationship of the link to this page. Possible values are: "home", "toc" (table of contents), "index", "glossary", "copyright", "bookmark", "up", "next", "previous", and "help".
- REV="..."--Used instead of REL, this specifies a reverse relationship from this page to the link. Possible values are: "made" (author, set HREF=email address) and all the ones used in REL.
- HREF="..."--Specifies the address of the link.
- TITLE="..."--Specifies a title for the link.
- <TITLE>.....< /TITLE>
- <BODY attribute1="..." attribute2="...">.....< /BODY>
Encloses the main body of the document.- Attributes:
- ALINK="..."--Specifies the color of the activated links in the page.
- BACKGROUND="..."--Specifies an image to be tiled as background.
- BGCOLOR="..."--Specifies the background color.
- BGPROPERTIES=FIXED--Fixes the background image so that it doesn't scroll. (IE)
- LEFTMARGIN="n"--Specifies the left margin for the entire page. (IE)
- LINK="..."--Specifies the color of the links in the page.
- TEXT="..."--Specifies the color of the text in the page.
- TOPMARGIN="n"--Specifies the top margin for the entire page. (IE)
- VLINK="..."--Specifies the color of the followed links in the page.
NOTE:Color is always expressed as RGB (Red Green Blue), where each color has a value between 0 and 255 expressed in hex notation. For example, BGCOLOR=#FFFF00 sets the background color to yellow. For more information check out Colors of the Web.
- <BASEFONT attribute=">
Sets the default font properties for the entire page.- Attributes:
- SIZE="..."--Sets the size of the font to any number between 1 and 7 with 3 being default. Relative sizes also work, e.g. SIZE=+2 .
- COLOR="..."--Specifies the default font color for the page.
- Name="..."--Specifies the typeface of the default font.
- <Hn>...< /Hn>
Makes the enclosed text a heading of various sizes where n is any number ranging from 1 to 6, and 1 creates the biggest heading while 6 creates the smallest. - <ISINDEX>
Displays a text box indicating the presence of a searchable index. Simply adding this tag will not create a searchable page. The server must be set up to support it.- Attributes:
- ACTION="..."--Specifies the location of the gateway program to which the search string should be passed.
- PROMPT="..."--Specifies an alternate prompt for the text box.