

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML content Attribute
The content attribute in HTML is used to display the value with the name or http-equiv. It is associated with the <meta> element.
The content attribute of the <meta> element is used to set the meta information in an HTML document. This can be the information for the description or the keywords, for name attribute.
Following is the syntax −
<meta content="text">
Above, the text is the meta information.
Let us now see an example to implement the content attribute of the <meta> element −
Example
<!DOCTYPE html> <html> <head> <meta name="description" content="Learn for free"> </head> <body> <h2>Tutorials</h2> <p>Programming tutorials for free:</p> <ol> <li>Java</li> <li>C++</li> <li>C</li> <li>C#</li> </ol> </body> </html>
Output
- Related Questions & Answers
- HTML <meta> content Attribute
- Get the HTTP header for the information of the content attribute in HTML
- HTML accept Attribute
- HTML accesskey Attribute
- HTML autofocus Attribute
- HTML checked Attribute
- HTML Class Attribute
- HTML cols Attribute
- HTML colspan Attribute
- HTML contenteditable Attribute
- HTML data Attribute
- HTML dir Attribute
- HTML disabled Attribute
- HTML enctype Attribute
- HTML for Attribute
Advertisements