Get the HTTP header for the information of the content attribute in HTML


Use the http-equiv attribute to get the HTTP header for the information of the content attribute in HTML.

Example

You can try to run the following code to implement http-equiv attribute −

<html>
   <head>
      <title>HTML http-equiv attribute</title>
      <meta name = "keywords" content = "HTML, meta tag, metadata" />
      <meta name = "description" content = "Description of the document" />
      <meta http-equiv = "refresh" content = "10" />
   </head>
   <body style = "background-color:gray">
      Document content goes here
   </body>
</html>

Updated on: 03-Mar-2020

215 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements