<figcaption>태그는 figure요소내에서 img태그와 함께 쓰여 그림이나 도표이 제목 또는 범례를 표시하는데 사용합니다. html5에서 추가된 태그입니다.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="코리아뉴스" />
<title> html공부 </title>
<link rel="stylesheet" type="text/css" href="default.css" / >
<style type="text/css">
body {
color:red;
}
</style>
</head>
<body>
<section>
<h1>figcaption태그</h1>
<figure>
<img src="sample.jpg" alt="sample image">
<figcaption> 샘플이미지의 제목 </figcaption>
</figure>
</section>
<div id="related">
<p>영역 </p>
</div>
<footer>
<address> 전화 : 031-574-3659, E-mail : master@koreanews.com </address>
Copyright ⓒ 2013 Koreanews co., All Rights Reserved.
</footer>
</body>
</html>
등록된 댓글이 없습니다.