Every HTML document has three major components: the HTML declaration, the head, and the body.
Tag |
Function |
<HTML> (container tag) (Attributes – 0) |
Declares the document to be an HTML document. Root element of the HTML document which contains all other elements. All document content and supporting HTML code goes between the <HTML> and </HTML> tags. |
<HEAD> (container tag) (Attributes – 1) |
Container element for all the head elements – which includes <title>, <style>, <base>, <link>, <meta>, <script> and <noscript> |
<BODY> (container tag) (Attributes – 6) |
Contains all content and tags that compose the document body |
<BASE> (standalone tag) (Attributes – 2) |
Declares global reference values for the HREF and TARGET attributes. The reference or base HREF value is used as a basis for computing all relative URL references. The base TARGET name is used to identify the frame into which all linked documents should be loaded |
<ISINDEX> (standalone tag) (Attribute – 1) |
Produces a single-line input field used to collect query information. |
<META> (standalone tag) (Attributes – 4) |
Document specific information like keywords, expiration date, author, etc. |
<TITLE> (container tag) (Attributes – 0) |
Gives a descriptive title to a document. Titles show up in browser window title bars and in bookmark and history listings. |
<LINK> (standalone tag) (Attributes – 8) |
Links 2 files. Important attribute – href. Example – help files, style information |
<SCRIPT> (container tag) (Attributes – 5) |
Contains script code referenced in the body of the document |
<NOSCRIPT> (container tag) (Attributes – 0) |
Provides alternate content to use if a script cannot be executed. A browser might not be able to execute a script because the user has turned scripting off or because it does not know the scripting language used to write the script. |
<STYLE> (container tag) (Attributes – 3) |
Specifies style information for the document |
<BDO> (container tag) (Attributes – 1)
|
When mixing languages in an HTML document, it sometimes becomes necessary to be sensitive to the direction in which the language is read (left-to-right versus right-to-left). When languages that have mixed directions are used in a document, an approach called the bidirectional algorithm is used to ensure proper presentation of the content. In cases where you want to override the bidirectional algorithm for a block of text, you can enclose that text in the <BDO> and </BDO> tags. |
Tag: <HEAD>
Attribute |
Description and values |
PROFILE |
space-separated list of URLs that point to meta data profiles for the document |
Tag: <BODY>
Attribute |
Description and values |
BACKGROUND |
Set equal to the URL of an image to use in the document background. The image will be horizontally and vertically tiled if it is not large enough to fill the entire browser screen. |
BGCOLOR |
Set equal to the color you want to paint the document's background. |
LINK |
Set equal to the color you want to paint unvisited links. (A link is unvisited if a user has yet to click it.) |
ALINK |
Set equal to the color you want to paint active links (a link is active in the instant that the user clicks it). |
VLINK |
Set equal to the color you want to paint visited links. (A link is visited if a user has already clicked it.) |
TEXT |
Set equal to the color you want to paint the body text of the document |
Tag: <BASE>
Attribute |
Description and values |
HREF |
Specifies the reference URL that is used to help compute relative URLs. If the BASE HREF URL is http://www.xyz.com/cricket/T20.html and you use the relative URL score.html elsewhere in the document, for example, the relative URL will really point to http://www.xyz.com/hockey/score.html. |
TARGET |
Specifies the default frame name to which all links are targeted |
Tag: <ISINDEX>
Attribute |
Description and values |
PROMPT |
specifies what text should appear before the input field. In the absence of a PROMPT attribute, the text will read "This is a searchable index. Enter search criteria:" |
Tag: <META>
Attribute |
Description and values |
HTTP-EQUIV |
Specifies a type of HTTP header to be sent with the document. The value of the header is given by the CONTENT attribute. The two most commonly used values of HTTP-EQUIV are REFRESH, which refreshes the page after a specified delay, and EXPIRES, which gives the date after which content in the document is not considered to be reliable |
NAME |
Set equal to the name of the document meta-variable you want to specify. The value of the variable is given in the CONTENT attribute. Typical values for NAME include AUTHOR, KEYWORDS, GENERATOR, and DESCRIPTION. The KEYWORDS value is particularly useful for specifying words you would like a search engine's indexing program to associate with the page |
SCHEME |
Provides information on how to interpret the meta-variable. |
CONTENT |
Specifies either the HTTP header or the value of the meta-variable |
Tag: <LINK>
Attribute |
Description and values |
CHARSET |
Denotes which character encoding scheme to use |
HREF |
Set equal to the URL of the file to which you're making the linking reference |
HREFLANG |
Specifies the language code for the linked file |
MEDIA |
Provides the intended display destination for the linked document. The default value of MEDIA is "screen." |
TARGET |
Specifies which frame to target |
TITLE |
Gives the link a descriptive title |
REL |
Specifies the relationship of the linked file to the current file |
REV |
Specifies how the current file relates to the linked file |
Tag: <SCRIPT>
Attribute |
Description and values |
CHARSET |
Denotes which character encoding scheme to use |
DEFER |
Specifying the DEFER attribute tells the browser that the script does not generate any document content. This enables the browser to continue parsing and rendering the document without having to execute the script |
LANGUAGE |
Set equal to the scripting language used to write the script. LANGUAGE is being deprecated in favor of using the TYPE attribute |
SRC |
Specifies the URL of a file containing the script code, if not contained between the <SCRIPT> and </SCRIPT> tags |
TYPE |
Set equal to the MIME type of the script code, usually text/javascript or text/vbscript. When specifying a specific version of a scripting language, you can set TYPE equal to a value that includes version information as well (for example, TYPE="text/javascript1.1"). TYPE is a required attribute under HTML 4.0 |
. Tag: <STYLE>
Attribute |
Description and values |
MEDIA |
Specifies what media types the styles are to be used for (visual browser, speech-based browser, Braille browser, and so on). |
TITLE |
Gives the style information a descriptive title |
TYPE |
Set equal to the Internet content type for the style language. You will most likely say TYPE="text/css1" to denote the use of the style language put forward in the Cascading Style Sheets, Level 1 specification. TYPE is a required attribute of the <STYLE> tag |
.
Tag: <BDO>
Attribute |
Description and values |
DIR |
can be set to LTR to specify left-to-right directionality or to RTL to specify right-to-left directionality |
No comments:
Post a Comment
Don't be a silent reader...
Leave your comments...
Anu