HTML5에서 도입
설명
The HTML Figcaption Element (<figcaption>) represents a caption or a legend associated with a figure or an illustration described by the rest of the data of the <figure> element which is its immediate ancestor.
<figcaption> Element는 도표나 그림과 관련된 제목 혹은 범례를 표현한다. 그림이나 도표는 <figure> element에서 표기되며 <figcaption>의 부모 element가 된다. (너무 의역한것 같은데 좀 더 자연스럽게 표현하거나 부가설명을 붙여야할것) (범례라는 용어로 번역하는것이 어울리는지도 고민)
Usage Context
| Permitted content | Flow content |
| Tag omission | None, both the start tag and the end tag are mandatory |
| Permitted parent elements | A <figure> element |
| Normative document | HTML5, section 4.5.12 |
속성
이 엘리먼트는 전역속성을 지원한다.
예제
Please see the <figure> page for examples on <figcaption>.
<figure> 페이지에서 <figcaption>의 사용예를 볼 수 있다.
<!-- 이미지만 넣은 것 -->
<figure>
<img src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/276930_174499879257223_502215841_n.jpg"
alt="멋진 사진~!">
</figure>
<!-- 이미지에 캡션 넣은 것 -->
<figure>
<img src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/276930_174499879257223_502215841_n.jpg"
alt="멋진 사진!">
<figcaption>제일 잘 나가~</figcaption>
</figure>
DOM Interface
This element implements the HTMLElement interface.
이 요소는 HTMLElement 인터페이스를 구현한다.
호환성
| 기능 | 구글크롬 | 파이어폭스Gecko) | 인터넷 익스플로러 | Opera | Safari |
|---|---|---|---|---|---|
| 기본적인 지원 | 지원 | 4.0 (2.0) | 9.0 | 11.0 | 4.0 |
| 기능 | 안드로이드 | 파이어폭스 모바일(Gecko) | 인터넷 익스플로러 모바일 | 오페라 모바일 | 사파리 모바일 |
|---|---|---|---|---|---|
| 기본적인 지원 | 4.0 (2.0) |

