HTML | content Attribute
The HTML content Attribute is used to given the values that are related to the http-equiv or name attribute. The content attribute can associated with the <meta> element.
Syntax:
<meta content="text">
Attribute Values: It contains the values the text which specify the content of the meta information.
Example: This Example illustrates the use of content attribute.
<!DOCTYPE html> <html> <head> <title> content attribute in HTMLs </title> <meta name="keywords" content="content attribute in Meta Tag, Metadata" /> </head> <body style="text-align:center;"> <h1> GeeksforGeeks</h1> <h2>Content Attribute In HTML</h2> </body> </html> |
Output:

Supported Browsers: The browser supported by HTML content Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Recommended Posts:
- HTML | <meta> content Attribute
- Adding HTML entities using CSS content
- How to determine the content of HTML elements overflow or not ?
- HTML Course | Building Main Content - Section 1
- HTML Course | Building Main Content - Section 2
- HTML course | Building Main Content - Section 3
- How to insert HTML content into an iFrame using jQuery?
- HTML | alt attribute
- HTML | name Attribute
- HTML | rel attribute
- HTML src attribute
- HTML | <img> alt Attribute
- HTML | low Attribute
- HTML | <bdo> dir Attribute
- HTML | min Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




