A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/ja/docs/Web/API/HTMLInputElement/alt below:

HTMLInputElement: alt プãƒãƒ‘ティ - Web API

HTMLInputElement: alt プロパティ

Baseline Widely available

alt は HTMLInputElement インターフェイスのプロパティで、画像を使用できないユーザーやユーザーエージェント向けに、ボタンのテキストラベルを定義します。これは、<input> 要素の alt 属性を反映します。

この alt 属性は image 型でのみ有効です。画像が利用できない場合の同等のボタンに適切なラベルを示す、空ではない文字列でなければなりません。

値

文字列です。

例
const inputElement = document.getElementById("imageButton");
console.log(inputElement.alt);
inputElement.alt = "はるかに良い説明";
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4