HTML Home
HTML Tags Reference
Selected Reading
© 2011 TutorialsPoint.COM
|
HTML <meta> tag
Function:
The HTML <meta> tag is used for declaring metadata for the HTML document.
Difference between HTML and XHTML:
In HTML the <meta> tag has no end tag.
In XHTML the <meta> tag must be properly closed.
Example:
<html>
<head>
<title>HTML meta tag</title>
<meta name="keywords" content="HTML, meta tag, metadata" />
<meta name="description" content="Brief description of the document" />
<meta http-equiv="refresh" content="10" />
</head>
<body style="background-color:orange">
Document content goes here
</body>
</html>
|
For more detail on Meta Tag please go through Meta Tag
Attributes:
Attribute | Value | Description |
Name | author
description
keywords
generator
revised
others | Name for the property. |
content | text | Defines meta information to be associated with http-equiv or name. |
http-equiv | content-type
expires
refresh
set-cookie | Connects the content attribute to an HTTP header. |
scheme | text | Defines a format to be used to interpret the value of the content attribute. |
Standard Attributes:
Attribute | Description |
dir | Specifies the direction of the text |
lang | Sets the language code. |
xml:lang | Sets the language code. |
|
|
|