Open In App

HTML <meta> content Attribute

Last Updated : 12 Mar, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

HTML <meta> content Attribute provides the value associated with either the http-equiv or name attribute, offering metadata information such as character encoding, viewport settings, or other document-related data.

Syntax:

<meta content="text">

Attribute Values:

It contains single-value text which is used to specify the content of the meta information.

HTML <meta> content Attribute Examples

Example: In this example, The content attribute in HTML is used for metadata like keywords in the meta tag to describe webpage content.

HTML
<!DOCTYPE html>
<html>

<head>
    <title>content attribute in HTML</title>
    <meta name="keywords" content="content attribute 
                in Meta Tag, Metadata" />
</head>

<body style="text-align: center">
    <h1>GeeksforGeeks</h1>
    <h2>
        &lt;meta&gt; Content Attribute
    </h2>
</body>

</html>

Output:

Supported Browsers:

The browser supported by HTML <meta> Content Attribute are listed below:


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads