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:
- Projecting Content into Components with ng-content
- HTML | <meta> content Attribute
- HTML Course | Building Main Content - Section 1
- HTML Course | Building Main Content - Section 2
- HTML course | Building Main Content - Section 3
- Adding HTML entities using CSS content
- How to determine the content of HTML elements overflow or not ?
- How to underline a text content using HTML ?
- How to insert HTML content into an iFrame using jQuery?
- Create a Table of Content in Tree View Architecture using HTML, CSS and JavaScript
- HTML | DOM Meta content Property
- How to use AngularJS to Display HTML content value ?
- How to get all HTML content from DOMParser excluding the outer body tag ?
- How to get HTML content of an iFrame using JavaScript ?
- HTML | <html> xmlns Attribute
- Reading selected webpage content using Python Web Scraping
- CSS | align-content property
- How to align content of a div to the bottom using CSS ?
- CSS | justify-content Property
- Bootstrap | Close Icon for dismissing content with Examples
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.



