HTML http-equiv attribute
http-equiv
The purpose of the HTML http-equiv attribute is to provide information for HTTP response message headers (for example content or application type).
Supported elements
HTML http-equiv attribute supports meta element.
Syntax
<meta http-equiv="value" ... / >
Type of value
Name which must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
Value
Value | Description |
---|---|
Allow | Specifies the methods supported by the server. |
Content-Encoding | Specifies additional content-encoding for the document. |
Content-Length | Specifies the size of the document (in bytes). |
Content-Type | Specifies the MIME type of the document (like text/html). |
Date | Specifies when the document was created. |
Expires | Specifies when the document will be considered obsolete. |
Last-Modified | Specifies when the document was last modified. |
Location | Specifies an absolute URL for the document. |
Refresh | Specifies a time interval for the document to refresh itself. |
Set-Cookie | Specifies a cookie-value. |
WWW-Authenticate | Specifies authentication rules returned by the server. |
Default value
There is no default value of HTML http-equiv attribute.
Supported doctypes
HTML 4.01 strict, HTML 4.01 transitional, HTML 4.01 frameset.
Usage of HTML http-equiv attribute
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Previous: HTML hreflang attribute
Next: HTML ismap attribute
Test your Programming skills with w3resource's quiz.
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join
We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook