HTML content Attribute

HTML content Attribute: The HTML content attribute represents the value associated with the name attribute (or) htt-equiv.

HTML content Attribute

The HTML content attribute can be applied to the elements like the <meta>.

Syntax:<meta content=”text”>

It contains the values of the text which specifies the meta information.

Attribute Values

It contains the values the text which specifies the content of the meta information

Browser Support

The HTML  content attribute is supported by the following browsers:

  • Chrome
  • Firefox
  • Opera
  • Safari
  • Internet Explorer

Example: for content attribute with <meta> element

<!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> Freshersnow</h1> 
  <h2>Indian is a great Country</h2> 
</body> 

</html> 

Output:

HTML content attribute