Skip to content
PHP Ecosystem
Explore

HasHttpEquiv

API reference › HTML Attribute › HasHttpEquiv

traitUIAwesome\Html\Attribute\HasHttpEquiv
Sourcesrc/HasHttpEquiv.php
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.

MethodDescriptionDefined by
httpEquiv()Sets the http-equiv attribute.HasHttpEquiv
public function httpEquiv(string|Stringable|UnitEnum|null $value): static

Sets the http-equiv attribute.

Declares the pragma directive for the metadata entry.

Parameters

ParameterTypeDescription
$valuestring|Stringable|UnitEnum|nullPragma directive token, or null to remove the attribute.

Returns

static: New instance with the updated http-equiv attribute. HttpEquiv for predefined enum values.

Throws