The HTML <meta> tag is used for declaring metadata for the HTML document. The following are the attributes −
Attribute | Value | Description |
---|---|---|
Name | author description keywords generator revised others | Name of 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. |
Example
You can try to run the following code to include metadata −
<html> <head> <title>HTML meta tag</title> <meta name = "keywords" content = "HTML, meta tag, metadata" /> <meta name = "description" content = "Description of the document" /> <meta http-equiv = "refresh" content = "10" /> </head> <body style = "background-color:gray"> Document content goes here </body> </html>