--- title: slug: Web/HTML/Element/input/text tags: - フォーム入力 - フォーム - HTML - HTML フォーム - Input - 入力型 - リファレンス - Text - テキスト入力 - text input browser-compat: html.elements.input.input-text translation_of: Web/HTML/Element/input/text --- {{HTMLRef("Input_types")}} {{HTMLElement("input")}} 要素の **`text`** 型は、基本的な単一行のテキスト入力欄を生成します。 {{EmbedInteractiveExample("pages/tabbed/input-text.html", "tabbed-shorter")}}
{{anch("値")}} | テキスト入力欄に含まれる文字列を表す {{domxref("DOMString")}}。 |
イベント | {{domxref("HTMLElement/change_event", "change")}} および {{domxref("HTMLElement/input_event", "input")}} |
対応している共通属性 | {{htmlattrxref("autocomplete", "input")}}, {{htmlattrxref("list", "input")}}, {{htmlattrxref("maxlength", "input")}}, {{htmlattrxref("minlength", "input")}}, {{htmlattrxref("pattern", "input")}}, {{htmlattrxref("placeholder", "input")}}, {{htmlattrxref("readonly", "input")}}, {{htmlattrxref("required", "input")}}, {{htmlattrxref("size", "input")}} |
IDL 属性 | {{htmlattrxref("list", "input")}}, value |
メソッド | {{domxref("HTMLInputElement.select", "select()")}}, {{domxref("HTMLInputElement.setRangeText", "setRangeText()")}}, {{domxref("HTMLInputElement.setSelectionRange", "setSelectionRange()")}} |