HTML content attribute

content attribute specifies a value for the meta data such as keywords, description and author name etc.

<head>
 <title>Here title is written</title>
 <meta name="keywords" content="comma separated keywords are written">
</head>
</>

Attribute values

All possible values of content attribute

For application:

For an application, the value of the content attribute is the name of the web application.

If the page is not a web application, then this attribute should not be used.

<title>Here title is written</title>
<meta name="application" content="the name of web application">

For keywords:

For keywords, the value of the content attribute is the keywords separated by a comma. The keywords should be relevant to the page.

<meta name="keywords" content="comma separated keywords are written">

For description:

For description, the value is a simple string. This string is relevant to the document or page.

<meta name="description" content="A brief summary of the page">

For author:

The value of content attribute contains the name of the author of a website.

<meta name="author" content="the name of author">

Related Tags

The tags that support content attribute

<meta> tag

meta tag represents the meta information about the page for SEO (search engine optimization).



Was this article helpful?