HTML 기초 정리(35) - <figcaption> 요소 캡션 본문

프로그램/HTML

HTML 기초 정리(35) - <figcaption> 요소 캡션

728x90

정의 및 사용법

 

이 태그는 <figcaption> 요소 에 대한 캡션을 정의합니다 .

해당 <figcaption>요소는 <figure> 요소의 첫 번째 또는 마지막 자식으로 배치될 수 있습니다.

 

 

예시 

<!DOCTYPE html>
<html>
<body>

<h1>The figure and figcaption element</h1>

<figure>
  <img src="pic_trulli.jpg" alt="Trulli" style="width:100%">
  <figcaption>Fig.1 - Trulli, Puglia, Italy.</figcaption>
</figure>

</body>
</html>

 

 

반응형

프로그램/HTML Related Articles

MORE

Comments