HTML content Attribute

The HTML content attribute gives a value that is associated with the http-equiv or name attribute.

You can only use this attribute on the <meta> element to set the meta information in an HTML document.

Syntax

<meta content="here must be text">

Example of the HTML content attribute:

<!DOCTYPE html>
<html>
  <head>
    <meta name="description" content="Online Free  Tutorials">
    <meta name="keywords" content="HTML,CSS,JavaScript,PHP, Git">
  </head>
  <body>
    <h1>Example of the HTML "content" attribute</h1>
    <p>Lorem ipsum, or lipsum 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>



Do you find this helpful?

Related articles