Get HTTP Header for 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: 2020-03-03T12:35:54+05:30

279 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements