HTMLElement.title
HTMLElement.title
プロパティは、要素のタイトルを表します。 通常、テキストは、マウスがノード上にあるときに「ツールチップ」ポップアップに表示されます。
値
文字列です。
例
const link = document.createElement('a');
link.innerText = 'ブドウ';
link.href = 'https://ja.wikipedia.org/wiki/ブドウ';
link.title = 'ブドウに関するウィキペディアのページ';
仕様書
Specification |
---|
HTML Standard # dom-title |
ブラウザーの互換性
BCD tables only load in the browser
関連情報
- HTML の title` グローバル属性