httpEquiv property

Gets or sets information used to bind the value of a IHTMLMetaElement::content attribute of a meta element to an HTTP response header.

HTML 4.01 Specification, Section 7.4.4



HRESULT value = object.put_httpEquiv( v);HRESULT value = object.get_httpEquiv(* p);

Property values

Type: BSTR

the information in the response header. See HTTP Response Headers for a list of possible values.

Standards information


If the property is omitted, the IHTMLMetaElement::name property should be used to identify the meta-information. The IHTMLMetaElement::httpEquiv property is not case-sensitive.

Developers using the IHTMLMetaElement::httpEquiv and IHTMLMetaElement::content attributes to refresh documents from alternate URLs should treat the value of IHTMLMetaElement::content as untrusted data. For more information, please see Security Considerations: Dynamic HTML.

As of Windows Internet Explorer 8, the IHTMLMetaElement::httpEquiv attribute also supports a value of x-ua-compatible, which allows developers to specify a legacy document mode that Windows Internet Explorer should use to display a webpage. For full details, see Specifying legacy document modes. (As of Windows 8, legacy document modes are supported only for Internet Explorer for the desktop.)

As of Windows 8, you can specify the following values for use with Windows Runtime apps using JavaScript:

See also

Defining Document Compatibility