1. 4.14 専甚芁玠なしの䞀般的語圙
      1. 4.14.1 パンくずナビゲヌション
      2. 4.14.2 タグクラりド
      3. 4.14.3 䌚話
      4. 4.14.4 脚泚
    2. 4.15 無効芁玠
    3. 4.16 セレクタヌを甚いたHTML芁玠のマッチング
      1. 4.16.1 Case-sensitivity of the CSS 'attr()' function
      2. 4.16.2 Case-sensitivity of selectors
      3. 4.16.3 疑䌌クラス

4.14 専甚芁玠なしの䞀般的語圙

4.14.1 パンくずナビゲヌション

この仕様は、パンくずナビゲヌションメニュヌを蚘述する機械可読な方法を提䟛しない。著者は単に段萜で䞀連のリンクを䜿甚するよう掚奚される。nav芁玠は、ナビゲヌションブロックであるずしお、これらの段萜を含むセクションをマヌクするために䜿甚できる。

次の䟋においお、珟圚のペヌゞは2぀の経路を経由しお到達できる。

<nav>
 <p>
  <a href="/">Main</a> ▾
  <a href="/products/">Products</a> ▾
  <a href="/products/dishwashers/">Dishwashers</a> ▾
  <a>Second hand</a>
 </p>
 <p>
  <a href="/">Main</a> ▾
  <a href="/second-hand/">Second hand</a> ▾
  <a>Dishwashers</a>
 </p>
</nav>

4.14.2 タグクラりド

この仕様は、ペヌゞのグルヌプタグクラりドずも呌ばれるに適甚するキヌワヌドのリストをマヌクアップするための特別な任意のマヌクアップを定矩しない。䞀般に著者は、非衚瀺およびスタむルシヌトを䜿っお芋栄え効果をだす明瀺的なむンラむンのカりントをも぀ul芁玠を䜿甚しおこのようなリストをマヌクアップする、たたはSVGを䜿甚するこずのいずれかを掚奚される。

ここで、3぀のタグは短いタグクラりドに含たれる

<style>
.tag-cloud > li > span { display: none; }
.tag-cloud > li { display: inline; }
.tag-cloud-1 { font-size: 0.7em; }
.tag-cloud-2 { font-size: 0.9em; }
.tag-cloud-3 { font-size: 1.1em; }
.tag-cloud-4 { font-size: 1.3em; }
.tag-cloud-5 { font-size: 1.5em; }

@media speech {
  .tag-cloud > li > span { display:inline }
}
</style>
...
<ul class="tag-cloud">
 <li class="tag-cloud-4"><a title="28 instances" href="/t/apple">apple</a> <span>(popular)</span>
 <li class="tag-cloud-2"><a title="6 instances"  href="/t/kiwi">kiwi</a> <span>(rare)</span>
 <li class="tag-cloud-5"><a title="41 instances" href="/t/pear">pear</a> <span>(very popular)</span>
</ul>

それぞれのタグに関する実際の頻床は、title属性を甚いお説明する。CSSスタむルシヌトは、異なるサむズの単語のクラりドにマヌクアップを倉換するために提䟛されるが、CSSをサポヌトしないか芖芚系でないナヌザヌ゚ヌゞェントのために、頻床によっお様々なタグを分類するためにマヌクアップは"(popular)"たたは"(rare)"のような泚釈を含む。したがっお、すべおのナヌザヌが情報の恩恵を受けるこずが可胜ずなる。

順序は特に重芁でないので、olよりむしろul芁玠が䜿甚される。リストは実際にはアルファベット順である䞀方で、タグの長さによっお䞊べられる堎合に同じ情報を䌝えるだろう。

ペヌゞ自䜓に適甚するタグを衚すものではないため、tagのrelキヌワヌドはこれらa芁玠で䜿甚されない。これらはタグ自䜓をリスト化するむンデックスの単なる䞀郚である。

4.14.3 䌚話

この仕様は、ミヌティング議事録、チャット蚘録、脚本における察話、むンスタントメッセヌゞログ、および様々なプレヌダヌが亀代で談話する他の状況を満たし、䌚話をマヌクアップするための特定の芁玠を定矩しない。

代わりに、著者はp芁玠や句読点を䜿っお䌚話をマヌクアップするこずを掚奚する。スタむリング目的のために話者をマヌクする必芁がある著者は、spanたたはbを䜿甚するよう掚奚される。i芁玠に包たれたテキストを含む段萜は、ト曞きをマヌクアップするために䜿甚できる。

この䟋は、AbbotずCostelloの有名なスケッチ、Who's on firstからの抜出物を甚いおこれを瀺す

<p> Costello: Look, you gotta first baseman?
<p> Abbott: Certainly.
<p> Costello: Who's playing first?
<p> Abbott: That's right.
<p> Costello becomes exasperated.
<p> Costello: When you pay off the first baseman every month, who gets the money?
<p> Abbott: Every dollar of it.

次の抜粋は、むンスタントメッセヌゞの䌚話ログが、行ごずのUnixタむムスタンプを提䟛するためにdata芁玠を䜿甚しお、マヌクアップする方法を瀺す。タむムスタンプは、time芁玠が察応しおいない圢匏で提䟛されおおり、よっおdata芁玠がすなわち、Unixのtime_tのタむムスタンプ代わりに䜿甚されるこずに泚意されたい。著者は、time芁玠でサポヌトされる日付ず時刻のいずれかを䜿甚しおデヌタをマヌクアップするこずを望んだが、その芁玠は、dataの代わりに䜿甚されおいたかもしれない。デヌタ分析ツヌルがペヌゞの著者ず調敎するこずなく、明確にタむムスタンプを怜出するこずを可胜にするので、これは郜合がよいかもしれない。

<p> <data value="1319898155">14:22</data> <b>egof</b> I'm not that nerdy, I've only seen 30% of the star trek episodes
<p> <data value="1319898192">14:23</data> <b>kaj</b> if you know what percentage of the star trek episodes you have seen, you are inarguably nerdy
<p> <data value="1319898200">14:23</data> <b>egof</b> it's unarguably
<p> <data value="1319898228">14:23</data> <i>* kaj blinks</i>
<p> <data value="1319898260">14:24</data> <b>kaj</b> you are not helping your case

HTMLは、グラフをマヌクアップするための良い方法を持たないので、ゲヌム由来の察話的な䌚話の蚘述をマヌクアップするのはより困難である。この䟋は、䌚話の各時点での可胜な応答を列挙するためにdl芁玠を甚いお1぀の可胜な芏則を瀺す。考慮すべきもう1぀のオプションは、DOTファむル圢匏で䌚話を蚘述するものであり、文曞内に配眮するSVG画像ずしお結果を出力しおいる。[DOT]

<p> Next, you meet a fisher. You can say one of several greetings:
<dl>
 <dt> "Hello there!"
 <dd>
  <p> She responds with "Hello, how may I help you?"; you can respond with:
  <dl>
   <dt> "I would like to buy a fish."
   <dd> <p> She sells you a fish and the conversation finishes.
   <dt> "Can I borrow your boat?"
   <dd>
    <p> She is surprised and asks "What are you offering in return?".
    <dl>
     <dt> "Five gold." (if you have enough)
     <dt> "Ten gold." (if you have enough)
     <dt> "Fifteen gold." (if you have enough)
     <dd> <p> She lends you her boat. The conversation ends.
     <dt> "A fish." (if you have one)
     <dt> "A newspaper." (if you have one)
     <dt> "A pebble." (if you have one)
     <dd> <p> "No thanks", she replies. Your conversation options
     at this point are the same as they were after asking to borrow
     her boat, minus any options you've suggested before.
    </dl>
   </dd>
  </dl>
 </dd>
 <dt> "Vote for me in the next election!"
 <dd> <p> She turns away. The conversation finishes.
 <dt> "Madam, are you aware that your fish are running away?"
 <dd>
  <p> She looks at you skeptically and says "Fish cannot run, miss".
  <dl>
   <dt> "You got me!"
   <dd> <p> The fisher sighs and the conversation ends.
   <dt> "Only kidding."
   <dd> <p> "Good one!" she retorts. Your conversation options at this
   point are the same as those following "Hello there!" above.
   <dt> "Oh, then what are they doing?"
   <dd> <p> She looks at her fish, giving you an opportunity to steal
   her boat, which you do. The conversation ends.
  </dl>
 </dd>
</dl>

䞀郚のゲヌムにおいお、䌚話はより単玔である。各文字は単に、圌らがいうこずを固定された行の集合を持぀。この䟋においお、ゲヌムのFAQ/チュヌトリアルは、各文字の既知の可胜な応答の䞀郚を瀺す

<section>
 <h1>Dialogue</h1>
 <p><small>Some characters repeat their lines in order each time you interact
 with them, others randomly pick from amongst their lines. Those who respond in
 order have numbered entries in the lists below.</small>
 <h2>The Shopkeeper</h2>
 <ul>
  <li>How may I help you?
  <li>Fresh apples!
  <li>A loaf of bread for madam?
 </ul>
 <h2>The pilot</h2>
 <p>Before the accident:
 <ul>
  <li>I'm about to fly out, sorry!
  <li>Sorry, I'm just waiting for flight clearance and then I'll be off!
 </ul>
 <p>After the accident:
 <ol>
  <li>I'm about to fly out, sorry!
  <li>Ok, I'm not leaving right now, my plane is being cleaned.
  <li>Ok, it's not being cleaned, it needs a minor repair first.
  <li>Ok, ok, stop bothering me!Truth is, I had a crash.
 </ol>
 <h2>Clan Leader</h2>
 <p>During the first clan meeting:
 <ul>
  <li>Hey, have you seen my daughter?I bet she's up to something nefarious again...
  <li>Nice weather we're having today, eh?
  <li>The name is Bailey, Jeff Bailey. How can I help you today?
  <li>A glass of water?Fresh from the well!
 </ul>
 <p>After the earthquake:
 <ol>
  <li>Everyone is safe in the shelter, we just have to put out the fire!
  <li>I'll go and tell the fire brigade, you keep hosing it down!
 </ol>
</section>

4.14.4 脚泚

HTMLは、脚泚をマヌクアップするための専甚のメカニズムを持たない。ここで提案する遞択肢がある。


短いむンラむン泚釈の堎合、title属性を䜿甚するこずができる。

この䟋においお、察話の2぀の郚分は、title属性を䜿甚しお脚泚のようなコンテンツで泚釈付けされる。

<p> <b>Customer</b>: Hello! I wish to register a complaint. Hello. Miss?
<p> <b>Shopkeeper</b>: <span title="Colloquial pronunciation of 'What do you'"
>Watcha</span> mean, miss?
<p> <b>Customer</b>: Uh, I'm sorry, I have a cold. I wish to make a complaint.
<p> <b>Shopkeeper</b>: Sorry, <span title="This is, of course, a lie.">we're
closing for lunch</span>.

䞍幞なこずに、title属性に䟝存するこずは、倚くのナヌザヌ゚ヌゞェントがこの仕様で芁求されるようなアクセス可胜な方法で属性を公開しないため、珟圚掚奚されないたずえば、ツヌルチップを出珟させるマりスなどのポむンティングデバむスが必芁になり、これはモダンな携垯端末やタブレットをも぀人のような、キヌボヌドのみのナヌザヌずタッチのみのナヌザヌを締め出す。

title属性が䜿甚される堎合、属性をも぀芁玠ぞの読者の関心を匕き出すためにCSSを䜿甚するこずができる。

たずえば、次のCSSは、title属性を持぀芁玠の䞋に砎線を眮く。

[title] { border-bottom: thin dashed; }

より長い泚釈の堎合、埌で文曞の芁玠を指すよう、a芁玠が䜿甚されるべきである。リンクのコンテンツが角括匧内の数字であるのが慣䟋である。

この䟋においお、察話における脚泚は、ダむアログの䞋の段萜にリンクする。段萜は、ナヌザヌが脚泚の堎所に戻るこずができるように、察話ぞ盞互にリンクする。

<p> Announcer: Number 16: The <i>hand</i>.
<p> Interviewer: Good evening. I have with me in the studio tonight
Mr Norman St John Polevaulter, who for the past few years has been
contradicting people. Mr Polevaulter, why <em>do</em> you
contradict people?
<p> Norman: I don't. <sup><a href="#fn1" id="r1">[1]</a></sup>
<p> Interviewer: You told me you did!
...
<section>
 <p id="fn1"><a href="#r1">[1]</a> This is, naturally, a lie,
 but paradoxically if it were true he could not say so without
 contradicting the interviewer and thus making it false.</p>
</section>

サむドノヌトに察しお、単に特定の単語や文よりもテキストのセクション党䜓に適甚されるより長い泚釈の堎合、aside芁玠を䜿甚すべきである。

この䟋では、サむドバヌはそれにいく぀かの文脈を䞎えお、察話の埌に䞎えられる。

<p> <span class="speaker">Customer</span>: I will not buy this record, it is scratched.
<p> <span class="speaker">Shopkeeper</span>: I'm sorry?
<p> <span class="speaker">Customer</span>: I will not buy this record, it is scratched.
<p> <span class="speaker">Shopkeeper</span>: No no no, this's'a tobacconist's.
<aside>
 <p>In 1970, the British Empire lay in ruins, and foreign
 nationalists frequented the streets — many of them Hungarians
 (not the streets — the foreign nationals). Sadly, Alexander
 Yalt has been publishing incompetently-written phrase books.
</aside>

図たたは衚に぀いお、脚泚は該圓figcaptionたたはcaption芁玠、たたは文の呚囲に含めるこずができる。

この䟋においお、衚は、文に䞎えられる脚泚を持぀セルを持぀。figure芁玠は、衚ずその脚泚の組み合わせを単䞀の凡䟋に䞎えるために䜿甚される。

<figure>
 <figcaption>Table 1. Alternative activities for knights.</figcaption>
 <table>
  <tr>
   <th> Activity
   <th> Location
   <th> Cost
  <tr>
   <td> Dance
   <td> Wherever possible
   <td> £0<sup><a href="#fn1">1</a></sup>
  <tr>
   <td> Routines, chorus scenes<sup><a href="#fn2">2</a></sup>
   <td> Undisclosed
   <td> Undisclosed
  <tr>
   <td> Dining<sup><a href="#fn3">3</a></sup>
   <td> Camelot
   <td> Cost of ham, jam, and spam<sup><a href="#fn4">4</a></sup>
 </table>
 <p id="fn1">1. Assumed.</p>
 <p id="fn2">2. Footwork impeccable.</p>
 <p id="fn3">3. Quality described as "well".</p>
 <p id="fn4">4. A lot.</p>
</figure>

4.15 無効芁玠

芁玠は、次のいずれかである堎合に実際に無効であるずいわれる。

この定矩は、どの芁玠がフォヌカス可胜であるか、ならびにどの芁玠が:enabledおよび:disabled疑䌌クラスず䞀臎するかを決定するために䜿甚される。

4.16 セレクタヌを甚いたHTML芁玠のマッチング

4.16.1 Case-sensitivity of the CSS 'attr()' function

CSS Values and Units leaves the case-sensitivity of attribute names for the purpose of the 'attr()' function to be defined by the host language. [CSSVALUES]

When comparing the attribute name part of a CSS 'attr()' function to the names of namespace-less attributes on HTML elements in HTML documents, the name part of the CSS 'attr()' function must first be converted to ASCII lowercase. The same function when compared to other attributes must be compared according to its original case. In both cases, to match, the values must be identical to each other (and therefore the comparison is case sensitive).

This is the same as comparing the name part of a CSS attribute selector, specified in the next section.

4.16.2 Case-sensitivity of selectors

Selectors leaves the case-sensitivity of element names, attribute names, and attribute values to be defined by the host language. [SELECTORS]

When comparing a CSS element type selector to the names of HTML elements in HTML documents, the CSS element type selector must first be converted to ASCII lowercase. The same selector when compared to other elements must be compared according to its original case. In both cases, to match, the values must be identical to each other (and therefore the comparison is case sensitive).

When comparing the name part of a CSS attribute selector to the names of attributes on HTML elements in HTML documents, the name part of the CSS attribute selector must first be converted to ASCII lowercase. The same selector when compared to other attributes must be compared according to its original case. In both cases, the comparison is case-sensitive.

Attribute selectors on an HTML element in an HTML document must treat the values of attributes with the following names as ASCII case-insensitive:

For example, the selector [bgcolor="#ffffff"] will match any HTML element with a bgcolor attribute with values including #ffffff, #FFFFFF and #fffFFF. This happens even if bgcolor has no effect for a given element (e.g., div).

The selector [type=a s] will match any HTML element with a type attribute whose value is a, but not whose value is A, due to the s flag.

All other attribute values and everything else must be treated as entirely identical to each other for the purposes of selector matching. これは次を含む

Selectors defines that ID and class selectors (such as #foo and .bar), when matched against elements in documents that are in quirks mode, will be matched in an ASCII case-insensitive manner. However, this does not apply for attribute selectors with "id" or "class" as the name part. The selector [class="foobar"] will treat its value as case-sensitive even in quirks mode.

4.16.3 疑䌌クラス

Pseudo-classes

HTMLず䞀緒に䜿甚するこずができる倚数の動的セレクタヌが存圚する。このセレクタヌがHTML芁玠ずマッチする堎合に、このセクションは定矩する。[SELECTORS] [CSSUI]

:defined

:defined

Support in all current engines.

Firefox63+Safari10+Chrome54+
Opera?Edge79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

:defined疑䌌クラス は、definedである任意の芁玠ずマッチしなければならない。

:link

:link

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera3.5+Edge79+
Edge (Legacy)12+Internet Explorer3+
Firefox Android?Safari iOS3.2+Chrome Android?WebView Android1.5+Samsung Internet?Opera Android?
:visited

:visited

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera3.5+Edge79+
Edge (Legacy)12+Internet Explorer4+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android10.1+

href属性を持぀すべおのa芁玠、およびhref属性を持぀すべおのarea芁玠は、:linkず:visitedのいずれかずマッチしなければならない。

他の仕様では、この芁件の盎接的な実装に適甚されるプラむバシヌの懞念を軜枛するために、これらの芁玠がこれら疑䌌クラスずどのように䞀臎するかに関しお、より具䜓的な芏則を適甚する堎合がある。

:active

:active

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera5+Edge79+
Edge (Legacy)12+Internet Explorer4+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android10.1+

芁玠がナヌザヌによっおアクティブにされおいる間:active疑䌌クラスは芁玠にマッチするように定矩される。

特定の芁玠が:active疑䌌クラスのみを定矩する目的のためにアクティブにされおいるかどうかを刀断するために、HTMLナヌザヌ゚ヌゞェントは、次のリストで最初の該圓する゚ントリヌを䜿甚しなければならない。

芁玠がbutton芁玠がある堎合
芁玠がtype属性が送信ボタン、むメヌゞボタン、リセットボタンたたはボタン状態であるinput芁玠である堎合
芁玠がhref属性を持぀a芁玠である堎合
芁玠がhref属性を持぀area芁玠である堎合
芁玠がフォヌカス可胜である堎合

芁玠が正匏なアクティブ化状態にある堎合、芁玠はアクティブにされおいる。

たずえば、ナヌザヌがスペヌスバヌを抌すこずでbutton芁玠を抌すためにキヌボヌドを䜿甚しおいる堎合、芁玠は、芁玠がkeydownむベントを受信した時刻ず芁玠がkeyupむベントを受信した時刻ずの間でこの疑䌌クラスずマッチする。

芁玠がbeing actively pointed atである堎合

芁玠はアクティブにされおいる。

芁玠は、ナヌザヌがその芁玠の起動動䜜をトリガヌする意図を瀺し始めた時点から、ナヌザヌがその芁玠の起動動䜜をトリガヌする意図を瀺すのをやめた時点、たたはその芁玠の起動動䜜の実行が終了した時点のいずれか早い方たでの間、正匏な起動状態にあるずいわれる。

An element is said to be being actively pointed at while the user indicates the element using a pointing device while that pointing device is in the "down" state (e.g. for a mouse, between the time the mouse button is pressed and the time it is released; for a finger in a multitouch environment, while the finger is touching the display surface).

Selectorsの定矩によるず、:activeはアクティブにされおいる芁玠のフラットツリヌ祖先にもマッチする。[SELECTORS]

さらに、珟圚:activeにマッチしおいるlabel芁玠のラベル付きコントロヌルである芁玠は、:activeにもマッチする。ただし、アクティブ化されおいるずはカりントされない。

:hover

:hover

Support in all current engines.

Firefox1+Safari2+Chrome1+
Opera4+Edge79+
Edge (Legacy)12+Internet Explorer4+
Firefox Android?Safari iOS1+Chrome Android?WebView Android?Samsung Internet?Opera Android10.1+

:hover疑䌌クラスは、ナヌザヌがポむンティングデバむスで芁玠を指定する間の芁玠ずマッチするように定矩される。:hover疑䌌クラスのみを定矩する目的では、HTMLナヌザヌ゚ヌゞェントは、ナヌザヌがポむンティングデバむスを䜿甚しお指定する芁玠である堎合、その芁玠をナヌザヌが 指定するものず芋なさなければならない。

Selectorsの定矩によるず、:hoverは指定された芁玠のフラットツリヌ祖先にもマッチする。[SELECTORS]

さらに、珟圚:hoverにマッチしおいるlabel芁玠のラベル付きコントロヌルである芁玠は、:hoverにもマッチする。ただし、指定されるずはカりントされない。

具䜓的に、このような断片を考えおみる

<p> <label for=c> <input id=a> </label> <span id=b> <input id=c> </span> </p>

ナヌザヌがポむンティングデバむスずずもにID"a"をも぀芁玠を指定する堎合、p芁玠および䞊蚘の断片で瀺されない芁玠のすべおの祖先、label芁玠、ID"a"をも぀芁玠、およびID"c"をも぀芁玠は:hover疑䌌クラスずマッチする。IDが"a"の芁玠は、指定されるであるこずによっおマッチする。label芁玠ずp芁玠は、Selectorsのフラットツリヌの祖先に関する条件のためにマッチする。IDが"c"の芁玠は、ラベル付きコントロヌルに関する䞊蚘の远加条件を通しおマッチする぀たり、そのlabel芁玠は、:hoverにマッチする。しかし、ID "b"をも぀芁玠は:hoverずマッチしない。たずえそれが:hover.ずマッチしおも、そのフラットツリヌ子孫は指定されない。

:focus

:focus

Support in all current engines.

Firefox1+Safari1+Chrome1+
Opera7+Edge79+
Edge (Legacy)12+Internet Explorer8+
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android10.1+

CSS :focus疑䌌クラスの目的䞊、次の堎合に芁玠がフォヌカスを持぀

:target

:target

Support in all current engines.

Firefox1+Safari1.3+Chrome1+
Opera9.5+Edge79+
Edge (Legacy)12+Internet Explorer9+
Firefox Android?Safari iOS2+Chrome Android?WebView Android2+Samsung Internet?Opera Android10.1+

CSS :target疑䌌クラスの目的䞊、Documentのtarget elementsは、nullでない堎合Documentのtarget elementはそれを含むリストであり、nullの堎合は芁玠を含たないリストである。[SELECTORS]

:popover-open

:popover-open

Support in all current engines.

Firefox🔰 114+Safaripreview+Chrome114+
Opera?Edge114+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

The :popover-open pseudo-class is defined to match any HTML element whose popover attribute is not in the No Popover state and whose popover visibility state is showing.

:enabled

:enabled

Support in all current engines.

Firefox1+Safari3.1+Chrome1+
Opera9+Edge79+
Edge (Legacy)12+Internet Explorer9+
Firefox Android?Safari iOS?Chrome Android?WebView Android2+Samsung Internet?Opera Android10.1+

:enabled疑䌌クラスは、実際には無効になっおいないbutton、input、select、textarea、optgroup、option、fieldset芁玠、たたはフォヌムに関連付けられた芁玠ずマッチしなければならない。

:disabled

:disabled

Support in all current engines.

Firefox1+Safari3.1+Chrome1+
Opera9+Edge79+
Edge (Legacy)12+Internet Explorer9+
Firefox Android?Safari iOS?Chrome Android?WebView Android2+Samsung Internet?Opera Android10.1+

:disabled疑䌌クラスは、実際に無効である任意の芁玠ずマッチしなければならない。

:checked

:checked

Support in all current engines.

Firefox1+Safari3.1+Chrome1+
Opera9+Edge79+
Edge (Legacy)12+Internet Explorer9+
Firefox Android4+Safari iOS?Chrome Android18+WebView Android2+Samsung Internet?Opera Android10.1+

:checked疑䌌クラスは、次のカテゎリヌのいずれかに分類される任意の芁玠ずマッチしなければならない。

:indeterminate

:indeterminate

Support in all current engines.

Firefox2+Safari3+Chrome1+
Opera9+Edge79+
Edge (Legacy)12+Internet Explorer10+
Firefox Android?Safari iOS1+Chrome Android?WebView Android37+Samsung Internet?Opera Android10.1+

:indeterminate疑䌌クラスは、次のカテゎリヌのいずれかに分類される任意の芁玠ずマッチしなければならない。

:default

:default

Support in all current engines.

Firefox4+Safari5+Chrome10+
Opera10+Edge79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS5+Chrome Android?WebView Android37+Samsung Internet?Opera Android10.1+

:default疑䌌クラスは、次のカテゎリヌのいずれかに分類される任意の芁玠ずマッチしなければならない

:placeholder-shown

:placeholder-shown疑䌌クラスは、次のカテゎリヌのいずれかに分類される任意の芁玠ずマッチしなければならない

:valid

:valid

Support in all current engines.

Firefox4+Safari5+Chrome10+
Opera10+Edge79+
Edge (Legacy)12+Internet Explorer10+
Firefox Android?Safari iOS5+Chrome Android?WebView Android37+Samsung Internet?Opera Android10.1+

:valid疑䌌クラスは、次のカテゎリヌのいずれかに分類される任意の芁玠ずマッチしなければならない

:invalid

:invalid

Support in all current engines.

Firefox4+Safari5+Chrome10+
Opera10+Edge79+
Edge (Legacy)12+Internet Explorer10+
Firefox Android?Safari iOS5+Chrome Android?WebView Android37+Samsung Internet?Opera Android10.1+

:invalid疑䌌クラスは、次のカテゎリヌのいずれかに分類される任意の芁玠ずマッチしなければならない

:user-valid

:user-valid疑䌌クラス は、user validityがtrueである input、textarea、およびselect芁玠ずマッチしなければならない。これらの芁玠は、制玄怜蚌の候補であり、制玄を満たさなければならない。

:user-invalid

:user-invalid疑䌌クラス は、user validityがtrueである input、textarea、およびselect芁玠ずマッチしなければならない。これらの芁玠は、制玄怜蚌の候補でであるが、制玄を満たしおはならない。

:in-range

:in-range

Support in all current engines.

Firefox29+Safari5.1+Chrome10+
Opera11+Edge79+
Edge (Legacy)13+Internet ExplorerNo
Firefox Android16+Safari iOS?Chrome Android?WebView Android2.2+Samsung Internet1.0+Opera Android11+

:in-range疑䌌クラスは、制玄怜蚌の候補であり、範囲に制限があり、アンダヌフロヌに苊したずオヌバヌフロヌに苊したない、すべおの芁玠ずマッチしなければならない。

:out-of-range

:out-of-range

Support in all current engines.

Firefox29+Safari5.1+Chrome10+
Opera11+Edge79+
Edge (Legacy)13+Internet ExplorerNo
Firefox Android16+Safari iOS?Chrome Android?WebView Android2.2+Samsung Internet?Opera Android11+

:out-of-range疑䌌クラスは、制玄怜蚌の候補であり、範囲に制限があり、アンダヌフロヌに苊しむたたはオヌバヌフロヌに苊しむかのいずれかであるすべおの芁玠ずマッチしなければならない。

:required

:required

Support in all current engines.

Firefox4+Safari5+Chrome10+
Opera10+Edge79+
Edge (Legacy)12+Internet Explorer10+
Firefox Android?Safari iOS5+Chrome Android?WebView Android4.4.3+Samsung Internet?Opera Android10.1+

:required疑䌌クラスは、次のカテゎリヌのいずれかに分類される任意の芁玠ずマッチしなければならない

:optional

:optional

Support in all current engines.

Firefox4+Safari5+Chrome10+
Opera10+Edge79+
Edge (Legacy)12+Internet Explorer10+
Firefox Android?Safari iOS5+Chrome Android?WebView Android37+Samsung Internet?Opera Android10.1+

:optional疑䌌クラスは、次のカテゎリヌのいずれかに分類される任意の芁玠ずマッチしなければならない

:autofill

:autofill

Firefox86+Safari15+Chrome🔰 1+
Opera?Edge🔰 79+
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS15+Chrome Android?WebView Android?Samsung Internet?Opera Android?
:-webkit-autofill

:autofillおよび:-webkit-autofill疑䌌クラスは、 ナヌザヌ゚ヌゞェントによっお自動入力されinput芁玠ずマッチしなければならない。ナヌザヌが自動入力フィヌルドを線集した堎合、これらの疑䌌クラスはマッチングを停止しなければならない。

そのような自動入力が発生するかもしれないひず぀の方法は、autocomplete属性によるものだが、ナヌザヌ゚ヌゞェントはこの属性が含たれおいなくおも自動入力できる。

:read-only

:read-only

Support in all current engines.

Firefox78+Safari4+Chrome1+
Opera9+Edge79+
Edge (Legacy)13+Internet ExplorerNo
Firefox Android🔰 4+Safari iOS?Chrome Android?WebView Android37+Samsung Internet?Opera Android10.1+
:read-write

:read-write

Support in all current engines.

Firefox78+Safari4+Chrome1+
Opera9+Edge79+
Edge (Legacy)13+Internet ExplorerNo
Firefox Android🔰 4+Safari iOS?Chrome Android?WebView Android37+Samsung Internet?Opera Android10.1+

:read-write疑䌌クラスは、セレクタヌの目的のためにナヌザヌ倉曎可胜ずみなされる、次のカテゎリヌの1぀に分類される任意の芁玠ずマッチしなければならない[SELECTORS]

:read-only疑䌌クラスは、他のすべおのHTML芁玠ずマッチしなければならない。

:modal

:modal疑䌌クラスは、次のカテゎリヌのいずれかに分類される任意の芁玠ずマッチしなければならない

:dir(ltr)

:dir

Firefox49+Safari16.4+ChromeNo
Opera?EdgeNo
Edge (Legacy)?Internet ExplorerNo
Firefox Android?Safari iOS?Chrome Android?WebView Android?Samsung Internet?Opera Android?

:dir(ltr)疑䌌クラスは、曞字方向が'ltr'であるすべおの芁玠ずマッチしなければならない。

:dir(rtl)

:dir(rtl)疑䌌クラスは、曞字方向が'rtl'であるすべおの芁玠ずマッチしなければならない。

カスタム状態疑䌌クラス

:state(identifier)疑䌌クラスは、状態セットのセット゚ントリヌに識別子が含たれおいるすべおのカスタム芁玠にマッチしなければならない。

:heading

The :heading pseudo-class must match all h1, h2, h3, h4, h5, and h6 elements.

:heading(integer#)

The :heading(integer#) pseudo-class must match all h1, h2, h3, h4, h5, and h6 elements that have a heading level of integer. [CSSSYNTAX] [CSSVALUES]

:playing

:playing疑䌌クラスは、paused属性がfalseであるすべおの メディア芁玠にマッチしなければならない。

:paused

:paused疑䌌クラスは、paused属性がtrueであるすべおの メディア芁玠にマッチしなければならない。

:seeking

:seeking疑䌌クラスは、seeking属性がtrueであるすべおの メディア芁玠にマッチしなければならない。

:buffering

:buffering疑䌌クラスは、paused属性がfalseであり、 networkState属性がNETWORK_LOADINGであり、か぀ready状態が HAVE_CURRENT_DATA以䞋であるすべおのメディア芁玠にマッチしなければならない。

:stalled

:stalled疑䌌クラスは、buffering疑䌌クラスにマッチし、is currently stalledがtrueであるすべおのメディア芁玠にマッチしなければならない。

This pseudo-class is intended for displaying player state UI when video playback has been buffering for too long. Unlike the stalled event, which fires whenever the network download has stalled regardless of playback or ready state.

:muted

:muted疑䌌クラスは、mutedであるすべおのメディア芁玠にマッチしなければならない。

:volume-locked

:volume-locked疑䌌クラスは、ナヌザヌ゚ヌゞェントのvolume lockedがtrueであるずき、すべおのメディア芁玠にマッチしなければならない。

:open

:open疑䌌クラスは、次のカテゎリヌのいずれかに該圓する任意の芁玠ずマッチしなければならない

この仕様では、芁玠が:lang()動的疑䌌クラスずマッチする堎合を定矩しおいない。これは、Selectorsで蚀語に䟝存しない流儀で十分に詳现に定矩されるためである。[SELECTORS]