<figure>
λΉ¨κ° λ°μ€μ μ΄λ―Έμ§λ₯Ό λ§ν¬μ
ν λ, λ³΄ν΅ <figure>
λ‘ <img>
λ₯Ό ν λ² κ°μΈμ μ¬μ©νλ νΈμ΄μλλ°
<img>
λ₯Ό ν λ² κ°μΈλ κ² vs <img>
λ₯Ό κ°μΈμ§ μκ³ μ¬μ©νλ κ² <figure>
λ₯Ό μ¬μ©νλ κ²μ΄ μ μ νμ§ β μ λν΄ κ³ λ―Όνμλλ°
<img>
λ₯Ό κ°μΈλ λκ³ κ·Έλλ‘ μ¬μ©ν΄λ λλ€.
β μν©μ λ°λΌ μ μ νν λ°©λ²μ μ΄μ©νλ©΄ λ λ―
ν΄λΉ λΆλΆμμ <figure>
μ μ¬μ©μ μ μ νμ§ μλ€.
<figure>
λ λΆκ°μ μΈ μ€λͺ
μ΄ νμν μ΄λ―Έμ§μ μ¬μ©νκΈ° μ μ ν νκ·ΈμΈλ°, μ¬κΈ°μ <img>
μλ λΆκ°μ μΈ μ€λͺ
μ΄ νμνμ§ μλ€.<div>
λ₯Ό μ¬μ©ν μμ The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document.
"Self-contained" in this context does not necessarily mean independent. For example, each sentence in a paragraph is self-contained; an image that is part of a sentence would be inappropriate for figure, but an entire sentence made of images would be fitting.
The element can thus be used to annotate illustrations, diagrams, photos, code listings, etc.
"Self-contained" μλ―Έ?
What does it mean for an element to be 'Self-Contained'
=> "Self-contained"λ μ£Όλ³ λ¬Έλ§₯κ³Ό 무κ΄ν κ²μ μλ―Ένλ€.<figure>
κ° λνλ΄λ κ²μ μκ°νκΈ° κ°μ₯ μ’μ μμλ κ΅κ³Όμμ΄λ€. κ·Έλ¦Όλ€μ κ΅κ³Όμλ₯Ό μ½κΈ° νΈνκ² νκΈ° μν΄, κ·Έλ¦Όκ³Ό μ±ν° μ λ°μ μΈ λ΄μ©μ κ΄λ ¨ν΄μ λ³Έλ¬Έμ 보μ¬μ§λ€. κ·Έ κ·Έλ¦Όμ λ§₯λ½μ μκ΄μμ΄ μ½κ³ μ΄ν΄ν μ μλ€.μμν λ΄μ©μ λλ€. μ νν λ΄μ©μ μμ λ§ν¬λ₯Ό μ°Έκ³ ν΄μ£ΌμΈμ!
μ°Έκ³ λ§ν¬
div.container > (div > img) * n
div.container > ul > (li > img) * n
div.container
λ΄μ ul > (li > img)
λ‘ μ²λ¦¬νλ κ²μ΄ λ μ맨ν±ν λ§ν¬μ
μ΄λΌκ³ μκ°νλλ°, ν΄λΉ λΆλΆ μꡬμ¬νμ΄λ νΌκ·Έλ§μ μ΄λ―Έμ§κ° μ¬λ¬ μ₯μΌ κ²½μ° νμ΄μ§μμ μ΄λ»κ² 보μ¬μ ΈμΌνλμ§ μ€λͺ
μ΄ λ°λ‘ μμ±λμ΄ μμ§ μμ νΌλνλ€ νΌλν΄