メインコンテンツへスキップ

isindex要素


1.仕様

ISINDEX要素は、
単一行の
テキスト入力コントロールを
作成します。

ISINDEX - X EMPTY -- A single line text input field. (Void elements.) [Metadata|Flow] --

isindex

一行プロンプト (single line prompt)

HTML4.01 で非推奨, HTML5 で廃止の要素です。
以下の説明では、HTML Living Standard での解釈を想定して記述しています。

種類
空要素

任意のコンテンツを持つことができない要素です。

使用できるコンテキスト
  • <head>要素に 0または1つ
  • フローコンテンツを受け入れる要素

<head>要素に 0または1つを そのコンテンツとして、使用できます。
フローコンテンツを受け入れる要素のコンテンツとして、使用できます。

フローコンテンツを受け入れる要素は、<body>要素, <section>要素, <nav>要素, <aside>要素, <article>要素, <header>要素, <footer>要素, <main>要素, <address>要素, <li>要素, <dt>要素, <dd>要素, <caption>要素, <th>要素, <td>要素, <form>要素, <fieldset>要素, <search>要素, <blockquote>要素, <figure>要素, <figcaption>要素, <div>要素, <dialog>要素, <details>要素 です。

コンテンツモデル
何もない

要素のコンテンツモデルが「何もない」の場合、要素にはテキストノード (要素間の空白以外) と要素ノードが含まれていてはなりません。

タグの省略

終了タグはありません。

コンテンツ属性
グローバル属性 他
prompt属性
プロンプトメッセージ
DOM インターフェイス
HTMLUnknownElement
  1. [Exposed=Window]
  2. interface HTMLUnknownElement : HTMLElement {
  3.  
  4. // Note: intentionally no [HTMLConstructor]
  5. };
HTMLElement
  1. [Exposed=Window]
  2. interface HTMLElement : Element {
  3. [HTMLConstructor] constructor();
  4.  
  5. // metadata attributes
  6. [CEReactions] attribute DOMString title;
  7. [CEReactions] attribute DOMString lang;
  8. [CEReactions] attribute boolean translate;
  9. [CEReactions] attribute DOMString dir;
  10.  
  11. // user interaction
  12. [CEReactions] attribute (boolean or unrestricted double or DOMString)? hidden;
  13. [CEReactions] attribute DOMString inert;
  14. undefined click();
  15. [CEReactions] attribute DOMString accessKey;
  16. readonly attribute DOMString accessKeyLabel;
  17. [CEReactions] attribute boolean draggable;
  18. [CEReactions] attribute boolean spellcheck;
  19. [CEReactions] attribute DOMString writingSuggestions;
  20. [CEReactions] attribute DOMString autocapitalize;
  21.  
  22. [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText;
  23. [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerText;
  24.  
  25. ElementInternals attachInternals();
  26.  
  27. // The popover API
  28. undefined showPopover();
  29. undefined hidePopover();
  30. boolean togglePopover(optional boolean force);
  31. [CEReactions] attribute DOMString? popover;
  32. };
  33.  
  34. HTMLElement includes GlobalEventHandlers;
  35. HTMLElement includes ElementContentEditable;
  36. HTMLElement includes HTMLOrSVGElement;
Element
  1. [Exposed=Window]
  2. interface Element : Node {
  3. readonly attribute DOMString? namespaceURI;
  4. readonly attribute DOMString? prefix;
  5. readonly attribute DOMString localName;
  6. readonly attribute DOMString tagName;
  7.  
  8. [CEReactions] attribute DOMString id;
  9. [CEReactions] attribute DOMString className;
  10. [SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
  11. [CEReactions, Unscopable] attribute DOMString slot;
  12.  
  13. boolean hasAttributes();
  14. [SameObject] readonly attribute NamedNodeMap attributes;
  15. sequence<DOMString> getAttributeNames();
  16. DOMString? getAttribute(DOMString qualifiedName);
  17. DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
  18. [CEReactions] undefined setAttribute(DOMString qualifiedName, DOMString value);
  19. [CEReactions] undefined setAttributeNS(DOMString? namespace, DOMString qualifiedName, DOMString value);
  20. [CEReactions] undefined removeAttribute(DOMString qualifiedName);
  21. [CEReactions] undefined removeAttributeNS(DOMString? namespace, DOMString localName);
  22. [CEReactions] boolean toggleAttribute(DOMString qualifiedName, optional boolean force);
  23. boolean hasAttribute(DOMString qualifiedName);
  24. boolean hasAttributeNS(DOMString? namespace, DOMString localName);
  25.  
  26. Attr? getAttributeNode(DOMString qualifiedName);
  27. Attr? getAttributeNodeNS(DOMString? namespace, DOMString localName);
  28. [CEReactions] Attr? setAttributeNode(Attr attr);
  29. [CEReactions] Attr? setAttributeNodeNS(Attr attr);
  30. [CEReactions] Attr removeAttributeNode(Attr attr);
  31.  
  32. ShadowRoot attachShadow(ShadowRootInit init);
  33. readonly attribute ShadowRoot? shadowRoot;
  34.  
  35. Element? closest(DOMString selectors);
  36. boolean matches(DOMString selectors);
  37. boolean webkitMatchesSelector(DOMString selectors); // legacy alias of .matches
  38.  
  39. HTMLCollection getElementsByTagName(DOMString qualifiedName);
  40. HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
  41. HTMLCollection getElementsByClassName(DOMString classNames);
  42.  
  43. [CEReactions] Element? insertAdjacentElement(DOMString where, Element element); // legacy
  44. undefined insertAdjacentText(DOMString where, DOMString data); // legacy
  45. };
GlobalEventHandlers
  1. interface mixin GlobalEventHandlers {
  2. attribute EventHandler onabort;
  3. attribute EventHandler onauxclick;
  4. attribute EventHandler onbeforeinput;
  5. attribute EventHandler onbeforematch;
  6. attribute EventHandler onbeforetoggle;
  7. attribute EventHandler onblur;
  8. attribute EventHandler oncancel;
  9. attribute EventHandler oncanplay;
  10. attribute EventHandler oncanplaythrough;
  11. attribute EventHandler onchange;
  12. attribute EventHandler onclick;
  13. attribute EventHandler onclose;
  14. attribute EventHandler oncontextlost;
  15. attribute EventHandler oncontextmenu;
  16. attribute EventHandler oncontextrestored;
  17. attribute EventHandler oncopy;
  18. attribute EventHandler oncuechange;
  19. attribute EventHandler oncut;
  20. attribute EventHandler ondblclick;
  21. attribute EventHandler ondrag;
  22. attribute EventHandler ondragend;
  23. attribute EventHandler ondragenter;
  24. attribute EventHandler ondragleave;
  25. attribute EventHandler ondragover;
  26. attribute EventHandler ondragstart;
  27. attribute EventHandler ondrop;
  28. attribute EventHandler ondurationchange;
  29. attribute EventHandler onemptied;
  30. attribute EventHandler onended;
  31. attribute OnErrorEventHandler onerror;
  32. attribute EventHandler onfocus;
  33. attribute EventHandler onformdata;
  34. attribute EventHandler oninput;
  35. attribute EventHandler oninvalid;
  36. attribute EventHandler onkeydown;
  37. attribute EventHandler onkeypress;
  38. attribute EventHandler onkeyup;
  39. attribute EventHandler onload;
  40. attribute EventHandler onloadeddata;
  41. attribute EventHandler onloadedmetadata;
  42. attribute EventHandler onloadstart;
  43. attribute EventHandler onmousedown;
  44. [LegacyLenientThis] attribute EventHandler onmouseenter;
  45. [LegacyLenientThis] attribute EventHandler onmouseleave;
  46. attribute EventHandler onmousemove;
  47. attribute EventHandler onmouseout;
  48. attribute EventHandler onmouseover;
  49. attribute EventHandler onmouseup;
  50. attribute EventHandler onpaste;
  51. attribute EventHandler onpause;
  52. attribute EventHandler onplay;
  53. attribute EventHandler onplaying;
  54. attribute EventHandler onprogress;
  55. attribute EventHandler onratechange;
  56. attribute EventHandler onreset;
  57. attribute EventHandler onresize;
  58. attribute EventHandler onscroll;
  59. attribute EventHandler onscrollend;
  60. attribute EventHandler onsecuritypolicyviolation;
  61. attribute EventHandler onseeked;
  62. attribute EventHandler onseeking;
  63. attribute EventHandler onselect;
  64. attribute EventHandler onslotchange;
  65. attribute EventHandler onstalled;
  66. attribute EventHandler onsubmit;
  67. attribute EventHandler onsuspend;
  68. attribute EventHandler ontimeupdate;
  69. attribute EventHandler ontoggle;
  70. attribute EventHandler onvolumechange;
  71. attribute EventHandler onwaiting;
  72. attribute EventHandler onwebkitanimationend;
  73. attribute EventHandler onwebkitanimationiteration;
  74. attribute EventHandler onwebkitanimationstart;
  75. attribute EventHandler onwebkittransitionend;
  76. attribute EventHandler onwheel;
  77. };
ElementContentEditable
  1. interface mixin ElementContentEditable {
  2. [CEReactions] attribute DOMString contentEditable;
  3. [CEReactions] attribute DOMString enterKeyHint;
  4. readonly attribute boolean isContentEditable;
  5. [CEReactions] attribute DOMString inputMode;
  6. };
HTMLOrSVGElement
  1. interface mixin HTMLOrSVGElement {
  2. [SameObject] readonly attribute DOMStringMap dataset;
  3. attribute DOMString nonce; // intentionally no [CEReactions]
  4.  
  5. [CEReactions] attribute boolean autofocus;
  6. [CEReactions] attribute long tabIndex;
  7. undefined focus(optional FocusOptions options = {});
  8. undefined blur();
  9. };
ARIA in HTML

この要素は、HTML5 では廃止された機能です。ARIA in HTML に、この要素の記述はありません。

レンダリング
ボックスを生成しない
非表示の要素
  1. isindex {
  2. display: block;
  3. }
  4. head isindex {
  5. display: none;
  6. }

CSS を大雑把に読むと、 要素とその子孫はボックスやテキストシーケンスを生成しません。 などになります。

説明
isindex要素は、単一行のテキスト入力コントロールを作成します。

isindex要素は、isindex要素は、HTML5 で廃止された要素です。HTML4.01 では非推奨でした。以下の記述は HTML3.2 での記述を記したものです。一応の知識として参照して下さい。既存の isindex要素の使用意図が不明で input要素に置き換える事が出来ない場合のみ、その環境で試行錯誤で頑張ってみて下さい。出来る限り、input要素の採用をお勧めします。
ユーザーエージェントがクエリ文字列を入力する為の 1 行のテキスト入力フィールドを提供する必要がある事を示します。入力できる文字数に制限はありません。prompt属性は、入力フィールドのプロンプト文字列を指定する為に使用できます。
現在、isindex要素のセマンティクスは、それを囲むドキュメントのベース URL が HTTP URL である場合にのみ明確に定義されています。通常、ユーザーが Enter(リターン) キーを押すと、このドキュメントのベース URL によって識別されるサーバーにクエリ文字列が送信されます。
スペース文字は「+」文字にマップされ、通常の URL 文字エスケープメカニズムが適用されることに注意してください。詳細については、HTTP 仕様を参照してください。実際には、URL にはクエリの文字セットを指定するメカニズムが現在存在しない為、クエリ文字列は Latin-1 に制限される事に注意してください。

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html lang="ja">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>isindex要素の例 - (Example of isindex element) | 離珠のHTMLでしぃ!</title>
  6. <meta name="author" content="コータン (KOUTAN)">
  7. <link rel="icon" href="../favicon.ico" type="image/vnd.microsoft.icon">
  8. <isindex prompt="検索フレーズ">
  9. </head>
  10. <body>
  11. <h1>isindex要素の例</h1>
  12. <p>この例の isindex要素は、「検索フレーズ」とラベル付けした単一行のテキスト入力コントロールを表しています。</p>
  13. <p>isindex要素は、HTML4.01 で非推奨, HTML5 で廃止の要素です。</p>
  14. </body>
  15. </html>

このサンプルへのリンクです。
(./exisindex.htm)

JSONデータ
JSON形式での、データのイメージです。
  1. {
  2. "isindex": {
  3. "group": "Metadata",
  4. "element": "- X EMPTY -- A single line text input field. (Void elements.) [Metadata|Flow] --",
  5. "attlist": {
  6. "%Global;": "",
  7. "prompt": "CDATA #IMPLIED -- prompt message --",
  8. },
  9. "summary": "一行プロンプト (single line prompt)",
  10. "point": "単一行のテキスト入力コントロールを作成します。",
  11. "description": [
  12. "isindex要素は、HTML5 で廃止された要素です。HTML4.01 では非推奨でした。以下の記述は HTML3.2 での記述を記したものです。一応の知識として参照して下さい。既存の isindex要素の使用意図が不明で input要素に置き換える事が出来ない場合のみ、その環境で試行錯誤で頑張ってみて下さい。出来る限り、input要素の採用をお勧めします。",
  13. "ユーザーエージェントがクエリ文字列を入力する為の 1 行のテキスト入力フィールドを提供する必要がある事を示します。入力できる文字数に制限はありません。prompt属性は、入力フィールドのプロンプト文字列を指定する為に使用できます。",
  14. "現在、isindex要素のセマンティクスは、それを囲むドキュメントのベース URL が HTTP URL である場合にのみ明確に定義されています。通常、ユーザーが Enter(リターン) キーを押すと、このドキュメントのベース URL によって識別されるサーバーにクエリ文字列が送信されます。",
  15. "スペース文字は「+」文字にマップされ、通常の URL 文字エスケープメカニズムが適用されることに注意してください。詳細については、HTTP 仕様を参照してください。実際には、URL にはクエリの文字セットを指定するメカニズムが現在存在しない為、クエリ文字列は Latin-1 に制限される事に注意してください。",
  16. ],
  17. "elementKind": "Void",
  18. "categories": [
  19. "Metadata",
  20. "Flow",
  21. ],
  22. "canUsedContexts": [
  23. "HEAD (ISINDEX)?",
  24. "parent (%Flow)*",
  25. ],
  26. "contentModel": "%Nothing",
  27. "tagOmission": [
  28. "-",
  29. "X",
  30. ],
  31. "rendering": "Hidden",
  32. "domInterface": "HTMLUnknownElement",
  33. "contentAttributes": {"prompt": "プロンプトメッセージ"},
  34. "reference": [
  35. {
  36. "title": "HTML Living Standard. 16.2 Non-conforming features. Last Updated 5 August 2025",
  37. "href": "https://html.spec.whatwg.org/multipage/obsolete.html#non-conforming-features",
  38. "heading": "HTML Living Standard. 16.2 Non-conforming features",
  39. "sub": "最終更新日 2025年8月5日",
  40. },
  41. {
  42. "title": "HTML 5.3 W3C Working Draft. 11.2. Non-conforming features. W3C First Public Working Draft, 14 December 2017",
  43. "href": "https://www.w3.org/TR/2017/WD-html53-20171214/obsolete.html#non-conforming-features",
  44. "heading": "HTML 5.3 W3C 初公開ワーキングドラフト. 11.2. Non-conforming features.",
  45. "sub": "W3Cワーキングドラフト、2017年12月14日",
  46. },
  47. {
  48. "title": "HTML 5.2 W3C Recommendation. 11.2. Non-conforming features. W3C Recommendation, 14 December 2017.",
  49. "href": "https://www.w3.org/TR/2017/REC-html52-20171214/obsolete.html#non-conforming-features",
  50. "heading": "HTML 5.2 W3C 勧告. 11.2. Non-conforming features",
  51. "sub": "W3C勧告、2017年12月14日",
  52. },
  53. {
  54. "title": "HTML 5.1 W3C Recommendation. 11.2. Non-conforming features. W3C Recommendation, 1 November 2016.",
  55. "href": "https://www.w3.org/TR/2016/REC-html51-20161101/obsolete.html#non-conforming-features",
  56. "heading": "HTML 5.1 W3C 勧告. 11.2. Non-conforming features",
  57. "sub": "W3C勧告、2016年11月1日",
  58. },
  59. {
  60. "title": "HTML 5 W3C Recommendation. 11.2 Non-conforming features. W3C Recommendation, 28 October 2014.",
  61. "href": "https://www.w3.org/TR/2014/REC-html5-20141028/obsolete.html#non-conforming-features",
  62. "heading": "HTML 5 W3C 勧告. 11.2 Non-conforming features",
  63. "sub": "W3C勧告、2014年10月28日",
  64. },
  65. {
  66. "title": "HTML 4.01 Specification W3C Recommendation. 17.8 The ISINDEX element. W3C Recommendation 24 December 1999.",
  67. "href": "https://www.w3.org/TR/html401/interact/forms.html#h-17.8",
  68. "heading": "HTML 4.01 Specification W3C 勧告. 17.8 The ISINDEX element",
  69. "sub": "W3C勧告1999年12月24日",
  70. },
  71. {
  72. "title": "HTML 3.2 Reference Specification. W3C Recommendation 14-Jan-1997.",
  73. "href": "https://www.w3.org/TR/2018/SPSD-html32-20180315/#isindex",
  74. "heading": "HTML 3.2 Reference Specification ISINDEX",
  75. "sub": "W3C勧告1997年1月14日",
  76. },
  77. {
  78. "title": " Hypertext Markup Language - 2.0. November 1995.",
  79. "href": "https://www.ietf.org/rfc/rfc1866.txt",
  80. "heading": "Hypertext Markup Language - 2.0",
  81. "sub": "November 1995",
  82. },
  83. {
  84. "title": "Hypertext Markup Language (HTML). June 1993.",
  85. "href": "https://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt",
  86. "heading": "Hypertext Markup Language (HTML)",
  87. "sub": "June 1993",
  88. },
  89. {
  90. "title": "<isindex> - HTML | MDN",
  91. "href": "https://www.devdoc.net/web/developer.mozilla.org/en-US/docs/Web/HTML/Element/isindex.html",
  92. "heading": "<isindex> - HTML | MDN",
  93. },
  94. ],
  95. "version": {
  96. "first": "HTML",
  97. "latest": "HTML4.01 Transitional",
  98. },
  99. "lastReviewed": "2025-08-10",
  100. }
  101. }

注意: 簡易に描画する為に、各項目の後ろに , を付与しています。JSON の形式では、末尾の項目の後には , は付けません。

最終確認日

2025-08-10


2.使用できるコンテキスト

isindex要素は、
head要素に
1つだけ
配置できます。

<isindex>要素が使用できるコンテキスト(Context文脈)は、他に<isindex>要素が配置されていない<head>要素コンテンツとしてです。また、フローコンテンツを受け入れる要素にも配置できます。(<form>要素が配置できた場所に、同様に配置できていた様です。)

ただし<isindex>要素は、HTML5 で廃止された要素です。HTML4.01 でも非推奨です。<input>要素を用いる事が推奨されます。


3.コンテンツモデル

isindex要素は、
配置可能なコンテンツは
ありません。

<isindex>要素子や子孫としてどのようなコンテンツ(Content内容) が含まれなければならないかというと、何もない」 (要素にはテキストノード(要素間の空白以外) と要素ノードが含まれていてはなりません。) です。

<isindex>要素は、(内容コンテンツContent)を持つことができない空要素です。


4.コンテンツ属性

isindex要素は、
グローバル属性と、
prompt属性 を
配置できます。

<isindex>要素に指定することができる属性は、グローバル属性prompt属性 です。

prompt属性

  1. <isindex prompt="検索フレーズ">

prompt属性 は、単一行のテキスト入力コントロールのラベルにあたる文字列を指定します。


5.DOM インターフェイス

isindex要素を、
直接表す
プロパティは
ありません。

<isindex>要素を JavaScript などで操作するには、documentquerySelectorAll()メソッドを用いる方法があります。要素セレクタisindexと指定して、<isindex>要素のリストを取得します。このメソッドの戻り値は、静的なNodeListオブジェクトであり、lengthプロパティで該当件数を知る事が出来ます。

NodeListオブジェクトは、配列の様に扱う事が出来ますが、for...in を使うとlengthプロパティなども対象となります。for...of を用いる事を推奨します。NodeListオブジェクトは、一致する要素ごとに Element を一つずつ含みます。上記の提示の時に取得できる値の形式はHTMLUnknownElement インターフェイスのリストです。その様になる様に取得しているのであり、どのメソッドを用いるか, 指定する条件はどうするかにより異なります。属性セレクタと組み合わせる方法もあります。

HTMLUnknownElement インターフェイスは、HTMLElement インターフェイスを継承しつつ、独自のメンバーの追加はありません。

他には、documentquerySelector()メソッドを用いて、条件に一致する文書内で最初の一件を取得するとか、id属性があればdocumentgetElementById()メソッドを用いるとか、name属性があればdocumentgetElementsByName()メソッドを用いるとか、状況, 目的によりいろいろあります。


6.アクセシビリティ

isindex要素は、
ARIA in HTML に、
記述はありません。

<isindex>要素暗黙的なARIAセマンティクスは、ありません。
<isindex>要素は、HTML Living Standard では廃止された機能です。ARIA in HTML に、この要素の記述はありません。<isindex>要素を使用する時は、HTML5 より前の機能でアクセシビリティを意識する必要がある訳です。

一応、グローバル aria-* 属性は、すべての要素で使用できます。しかし<isindex>要素は、HTML Living Standard では廃止された機能です。そのHTML文書は HTML Living Standard より前の決まりで記述されるべきなので、グローバル aria-* 属性も使用しない方が良いと思います。

<isindex>要素は、代わりに<input>要素などを使う事こそが、アクセシビリティを意識した記述になるのではないかと思います。


7.レンダリング

  1. isindex {
  2. display: none;
  3. }

<isindex>要素ユーザーエージェントレベルスタイルシートデフォルトでは、displayプロパティの値は none であり、この要素とその子孫はボックステキストシーケンスを生成しません。 また、HTML5 で廃止の要素なので、レンダリングについて明記された仕様が見つけられません。 どの様なボックスモデルで描画しているのか不明なので、とりあえず<head>要素に配置できるので、「非表示の要素」としてここでは扱っています。

HTML4.01 で非推奨, HTML5 で廃止の要素です。 いろいろ装飾する位なら、<input>要素に置き換えましょう。


8.気を付ける点

isindex要素は、
HTML5 で
廃止されています。

<isindex>要素は、HTML4.01 で非推奨, HTML5 で廃止の要素です。<input>要素で代用できます。


受信用の
ページへ
  1. <form action="./fmreceive.htm">
  2. <label>検索フレーズ<input name="nipInput" value="abc"></label>
  3. <button name="nbtSender" value="./spisindex.htm">ボタン</button>
  4. <br>受信用の<br>ページへ
  5. </form>

動作環境の都合で、送信先を「受信用のページ」としていますが、考え方としての例示です。<isindex>要素でもそうですが、送信先に受信したデータで処理をする仕掛けが必要です。なので、実際にはどこに何という名前でデータを送るべきかも含めて書き換える必要があります。