HTML <meta> content Attribute

The content attribute on a <meta> tag specifies the value of a name or http-equiv meta setting.

Example

#

Two meta tags with a content attribute.
The first has a name/content pair, and the second an http-equiv/content pair.

<meta name="description" content="Real-time Stock Tickers">
<meta http-equiv="refresh" content="30">
meta = metadata

Tip: Metadata is data about the page that the browser uses to render the page correctly.


Using content

The content attribute holds the value of the name or http-equiv meta attribute.

This attribute requires the name or http-equiv attribute to be present.


Syntax

<meta name="value" content="text">

Values

#

Value Description
text An alphanumeric string value.

Browser support

Here is when content support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <meta>
Guides