プロが教える店舗&オフィスのセキュリティ対策術

html5において、figcaption要素の中にul要素を入れるのは問題無いでしょうか??

A 回答 (1件)

仕様書見ればわかるけど


【引用】____________ここから
4.5.11 The figure element
 Categories:
   Flow content.
   Sectioning root.
   Palpable content.
 Contexts in which this element can be used:
   Where flow content is expected.
 Content model:
   Either: One figcaption element followed by flow content.
   Or: Flow content followed by one figcaption element.
   Or: Flow content.
 Content attributes:
   Global attributes
 DOM interface:
   Uses HTMLElement.

4.5.12 The figcaption element
 Categories:
   None. カテゴリーなし
 Contexts in which this element can be used:
   As the first or last child of a figure element.
     figure要素の最初か最後の要素
 Content model:
   Flow content.
     フローコンテント ・・・フローなら、なんでもOK
 Content attributes:
   Global attributes
     グローバル属性を持てる
 DOM interface:
   Uses HTMLElement.
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ここまで[4.5 Grouping content — HTML5( http://www.w3.org/TR/2012/CR-html5-20121217/grou … )]より

 要はfigureの中に一回だけ登場できて、そのときは最初か最後だけ・・。内部にはフローなら何でももてる。すなわちulだろうがh1だろうが・・

 そんな難しい英語じゃないので仕様書を確認しましょう。正確で正しい情報が得られる。
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!