<figure>
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since â¨2015ë 7ìâ©.
HTML <figure> ììë ë
립ì ì¸ ì½í
ì¸ ë¥¼ ííí©ëë¤. <figcaption> ìì를 ì¬ì©í´ ì¤ëª
ì ë¶ì¼ ì ììµëë¤. í¼ê·ì´, ì¤ëª
, ì½í
ì¸ ë íëì ë¨ìë¡ ì°¸ì¡°ë©ëë¤.
ìëí´ ë³´ê¸°
<figure>
<img
src="/shared-assets/images/examples/elephant.jpg"
alt="Elephant at sunset" />
<figcaption>An elephant at sunset</figcaption>
</figure>
figure {
border: thin #c0c0c0 solid;
display: flex;
flex-flow: column;
padding: 5px;
max-width: 220px;
margin: auto;
}
img {
max-width: 220px;
max-height: 150px;
}
figcaption {
background-color: #222;
color: #fff;
font: italic smaller sans-serif;
padding: 3px;
text-align: center;
}
| ì½í ì¸ ì¹´í ê³ ë¦¬ | íë¡ì° ì½í ì¸ , 구í 루í¸, ëë ·í ì½í ì¸ . |
|---|---|
| ê°ë¥í ì½í ì¸ |
|
| íê·¸ ìëµ | ë¶ê°ë¥, ììê³¼ ëì í그를 ì¶ê°íë ê²ì íìì ëë¤. |
| ê°ë¥í ë¶ëª¨ ìì | íë¡ì° ì½í ì¸ ë¥¼ íì©íë 모ë ìì. |
| ê°ë¥í ARIA ìí |
group, presentation
|
| DOM ì¸í°íì´ì¤ | HTMLElement |
í¹ì±
ì´ ììë ì ì í¹ì±ë§ í¬í¨í©ëë¤.
ì¬ì© ì¼ë
- ë³´íµ
<figure>ë 주 문ì íë¡ì°ê° 참조íì§ë§, ë¤ë¥¸ ë¶ë¶ì´ë ë¶ë¡ì¼ë¡ ì´ëí´ë 문ì ìë ì´ë¯¸ì§, ì½í, ëí, ì½ë ì¡°ê° ë±ì ë§¡ìµëë¤. <figure>ë 구í 루í¸ì´ë¯ë¡<figure>ììì ì½í ì¸ ë 문ìì 주 ê°ììì ì ì¸ë©ëë¤.- ìì (ì²ìì´ë ë§ì§ë§ ììì¼ë¡)
<figcaption>ì ë£ì´ì ì¤ëª ì ë§ë¶ì¼ ì ììµëë¤. ì ì¼ ì²ì<figcaption>ì ì¤ëª ì¼ë¡ ì¬ì©í©ëë¤.
ìì
>ì´ë¯¸ì§
html
<!-- Just an image -->
<figure>
<img
src="/shared-assets/images/examples/favicon144.png"
alt="A robotic monster over the letters MDN." />
</figure>
<!-- Image with a caption -->
<figure>
<img
src="/shared-assets/images/examples/favicon144.png"
alt="A robotic monster over the letters MDN." />
<figcaption>MDN Logo</figcaption>
</figure>
ì½ë ì¡°ê°
html
<figure>
<figcaption><code>navigator</code>를 ì´ì©íì¬ ë¸ë¼ì°ì ì ë³´ ì»ê¸°</figcaption>
<pre>
function NavigatorExample() {
var txt;
txt = "Browser CodeName: " + navigator.appCodeName;
txt+= "Browser Name: " + navigator.appName;
txt+= "Browser Version: " + navigator.appVersion ;
txt+= "Cookies Enabled: " + navigator.cookieEnabled;
txt+= "Platform: " + navigator.platform;
txt+= "User-agent header: " + navigator.userAgent;
}
</pre>
</figure>
ì¸ì©ë¬¸
html
<figure>
<figcaption><cite>Edsger Dijkstra:</cite></figcaption>
<blockquote>
If debugging is the process of removing software bugs, then programming must
be the process of putting them in.
</blockquote>
</figure>
ì
html
<figure>
<p style="white-space:pre">
Bid me discourse, I will enchant thine ear, Or like a fairy trip upon the
green, Or, like a nymph, with long dishevell'd hair, Dance on the sands, and
yet no footing seen: Love is a spirit all compact of fire, Not gross to
sink, but light, and will aspire.
</p>
<figcaption><cite>Venus and Adonis</cite>, by William Shakespeare</figcaption>
</figure>
ëª ì¸
| Specification |
|---|
| HTML > # the-figure-element > |