html tutorial - content Attribute in HTML - html5 - html code - html form
- The content attribute provides the value related with the http-equiv or name attribute.
Syntax for content attribute in HTML:
<meta content = “text”>
Applies To:
Element | Attribute |
---|---|
<meta> | content |
content Attribute Value:
Value | Description |
---|---|
text | It is specify the content of the meta information. |
Sample Coding for content Attribute in HTML:
<!DOCTYPE html>
<html>
<head>
<title>Wikitechy content attribute</title>
<meta name="description" content="Wikitechy a community of Developers
and IT Professional">
</head>
</html>
Code Explanation for content Attribute in HTML:

- <meta> tag defines metadata about an HTML document.
- name is an attribute, which defines the name of metadata.
- content attribute used to describes the value of the name attribute.
Browser Support for content Attribute in HTML:
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes |