HTML Attributes

HTML content attribute

Provides the value for a meta element using name or http-equiv. The acceptable syntax depends on the selected metadata key. Applicable elements include: <meta>. Check each element’s value rules.

Formal Syntax & Structure

html syntaxhtml
content="A guide to vegetable gardening."

Parameters & Attributes

NameTypeDescription
contenttext interpreted by metadata keyProvides the value for a meta element using name or http-equiv. The acceptable syntax depends on the selected metadata key.

Working Example

Example Snippethtml
<meta name="description" content="A guide to vegetable gardening.">
HTML Reference