Copyright © tutorialspoint.com
The HTML <meta> tag is used for declaring metadata for the HTML document.
In HTML the <meta> tag has no end tag.
In XHTML the <meta> tag must be properly closed.
<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
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. |
Attribute | Description |
---|---|
dir | Specifies the direction of the text |
lang | Sets the language code. |
xml:lang | Sets the language code. |
Copyright © tutorialspoint.com