HTML <meta> Tag
In this tutorial, we will learn about meta tag in HTML with the help of examples.
<meta> Tag
Meta tag <meta> is used to define the metadata(information about data) of the HTML document.
Note : The <meta> tag is used inside the <head> tag.
Syntax
<meta />
Example
<!DOCTYPE html>
<html>
<head>
<title>Meta Tag</title>
<meta name = "thisdata" content = "HTML, meta tag, metadata" />
</head>
<body>
<p>This is the example of meta tag.</p>
</body>
</html>
Output
This is the example of meta tag.
Specific Attribute
Attribute | Value | Description |
---|---|---|
name | author description keywords generator revised others |
It is used to give the name for the property |
content | text | It defines meta information to be associated with http-equiv or name attribute |
http-equiv | content-type expires refresh set-cookies |
It is used to connects the content attribute to an HTTP header |
screme | text | It is used to defines a format to be used to interpret the value of the content attribute |
Global Attribute
Meta Tag support all the global attributes of HTML.
Event Attribute
Meta Tag support all the event attributes of HTML.
Next Tutorial
We hope that this tutorial helped you develop better understanding of the concept of <meta> tag in HTML.
Keep Learning : )
In the next tutorial, you'll learn about HTML <meter>
Tag.