Atrybut treści HTML


Definicja i użycie

contentAtrybut podaje wartość powiązaną z atrybutem lub http-equiv. name


Dotyczy

Atrybutu contentmożna użyć na następującym elemencie:

Element Atrybut
<meta> zawartość

Przykład

Metaprzykład

Opisz metadane w dokumencie HTML:

<head>
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
</head>

Obsługa przeglądarki

Attribute
content Yes Yes Yes Yes Yes