HTML content-Attribut
Das content-Attribut gibt einen Wert an, der mit dem Attribut name oder http-equiv verknüpft ist.
Sie können dieses Attribut nur im meta-Element verwenden, um Metainformationen in einem HTML-Dokument festzulegen.
Syntax
html
<meta name="description" content="A description of the document">Beispiel für das HTML content-Attribut
html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Online Free Tutorials" />
<meta name="keywords" content="HTML,CSS,JavaScript,PHP, Git" />
<meta http-equiv="refresh" content="30" />
</head>
<body>
<h1>Example of the HTML "content" attribute</h1>
<p>Lorem ipsum, or lorem ipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book.</p>
</body>
</html>Practice
Welche gültigen Verwendungen hat das HTML content-Attribut laut der bereitgestellten Webressource?