Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <meta> content Attribute

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

This attribute requires a name or http-equiv attribute.

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>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides