HTML - Meta Tags
What is Meta Tags
The < meta > tag is used to provide additional information about web page without impact physical appearance of the web document.
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags </title>
<title meta name = "keywords" content = "HTML, Meta Tags, Metadata">
</head>
<body>
<h1>Meta Tags</h1>
<p> with Keywords.</p>
</body>
</html>
The META elements can be used to describing properties of the HTML document, such as author, description, a list of keywords etc.
Meta Tags Atrribute
Sr.No | Meta name | Description |
---|---|---|
1 | Name | Name for the property. Can be anything. Examples include, keywords, description, author, revised, generator etc. |
2 | content | Specifies the property's value. |
3 | scheme | Specifies a scheme to interpret the property's value (as declared in the content attribute). |
4 | http-equiv | Used for http response message headers. For example, http-equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie. |
<!DOCTYPE html>
<html>
<head>
<title>Meta Tags </title>
<meta name = "keywords" content = "HTML, Meta Tags, Metadata">
<name = "description" content = "Learning about Meta Tags">
<name = "author" content = "Mahnaz Mohtashim">
<meta name = "revised" content = "Tutorialspoint, 3/7/2014">
<http-equiv = "refresh" content = "5">
<http-equiv = "Content-Type" content = "text/html; charset = Big5">
</head>
<body>
<h1>Meta Tags</h1>
<p> with Keywords, description ..etc </p>
</body>
</html>