Advertisement
Home Open Editor ❯

HTML <meta> content Attribute

Example

<head>
  <meta charset="UTF-8">
  <meta name="language" content="EN">
  <meta name="description" content="add up to 160 characters">
  <meta name="keywords" content="your, keywords">
  <meta name="robots" content="index, follow">
  <meta name="copyright"content="company">
  <meta name="author" content="John Doe, email@domain.com">
  <meta name="distribution" content="Global">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

Try this code ❯

Meaning

The content attribute contains the actual meta-information. The form of the meta-information varies greatly, depending on the value set for name.


Standard Syntax

HTML: <meta content="text">
XHTML: <meta content="text" />


Advertisement

Attribute Values

Value Description
text (String) Gives the value of the document metadata(information).
Home Open Editor ❯
Advertisement