HasTitle
API reference › HTML Attribute › Global › HasTitle
Used by 4 types
Provides an immutable API for the title attribute.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
title() | Sets the title attribute. | HasTitle |
Method details
Section titled “Method details”title()
Section titled “title() ”public function title(string|Stringable|UnitEnum|null $value): staticSets the title attribute.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string|Stringable|UnitEnum| | Advisory title text, or null to remove the attribute. |
Returns
static: New instance with the updated title attribute.