Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

content: the value of HTML metadata

Interpret a metadata value together with its name or directive.

Version: HTML Living Standard

Syntax

<meta name="description" content="Learn HTML through examples.">

On a metadata element, content supplies the value associated with name or an http-equiv directive. For microdata expressed with itemprop, it is also required and supplies the property value. Its grammar depends on that context: a description is text, while a refresh directive contains a delay and optionally a destination. It is not rendered body content and is unrelated to the CSS property of the same spelling.

Do not assume that adding metadata forces search engines to display it or turns a directive into an HTTP response header. Keep attribute quoting correct and avoid unexpected automatic navigation, which can interrupt readers. For normal permanent redirection, configure an appropriate server response instead.

The isolated example uses a zero-delay refresh to a local destination. The test follows the actual browser navigation and checks the destination response. It demonstrates interpretation of this directive, not SEO results or permission to redirect users without warning.

Examples

<!doctype html><html><head><meta charset="utf-8">
<!-- The local fixture serves a destination page with the displayed result. -->
<meta http-equiv="refresh" content="0;url=/destination">
</head><body><p>Opening the local destination.</p></body></html>

Result

redirected=true; destination=local

The destination is an intercepted local fixture; no external page is opened.

Sources