Skip to content
Related Articles

Related Articles

HTML | content Attribute

Improve Article
Save Article
Like Article
  • Difficulty Level : Medium
  • Last Updated : 25 Aug, 2021

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. 

Supported Tags: 

  • <meta>

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. 
 

html




<!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

 

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!