HasHttpEquiv
API reference › HTML Attribute › HasHttpEquiv
Used by 1 type
Provides an immutable API for the http-equiv attribute.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/http-equiv.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
httpEquiv() | Sets the http-equiv attribute. | HasHttpEquiv |
Method details
Section titled “Method details”httpEquiv()
Section titled “httpEquiv() ”public function httpEquiv(string|Stringable|UnitEnum|null $value): staticSets the http-equiv attribute.
Declares the pragma directive for the metadata entry.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string|Stringable|UnitEnum| | Pragma directive token, or null to remove the attribute. |
Returns
static: New instance with the updated http-equiv attribute. HttpEquiv for predefined enum values.
Throws
InvalidArgumentException: If the value is not valid.