Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

HTML | DOM Meta httpEquiv Property

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The HTML DOM Meta httpEquiv Property is used to set or returning the an HTTP header for the information in the content attribute. The HTML http-equiv Attribute is used to provide header information or value of the content Attribute. It can be used to simulate an HTTP Header response.


  • It return the httpEquiv property:
  • It is used to Set the httpEquiv property:
    metaObject.httpEquiv = HTTP-he 

Property values:

  • content-type It Specifies the character set for the contents of the document.
  • default-style It Specified the preferred style sheet to use.
  • refresh It Defines a time interval for the document to refresh itself.


<!DOCTYPE html> 
  <meta http-equiv="refresh" content="30">
        <h2>DOM Meta http-equiv  Property</h2
        <p>Hello GeeksforGeeks!</p
        <button onclick="myGeeks()"
        <p id="sudo"></p
            function myGeeks() { 
                var x = 
                "sudo").innerHTML = x; 

Before Clicking On Button:

After Clicking On Button :

Supported Browsers: The browsers supported by DOM Meta httpEquiv Property are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera

My Personal Notes arrow_drop_up
Last Updated : 02 Mar, 2020
Like Article
Save Article
Similar Reads
Related Tutorials