HTML 태그 - marquee
본문
HTML 태그 - marquee
<marquee>태그는 텍스트 흐르는 기능이 필요할 때 사용합니다. 이 태그는 IE에서 시작되었으며, 모질라계열은 XBL바인딩을 사용합니다. HTML5에서 삭제되었습니다.
속성
behavior : 텍스트가 흐르는 모양을 지정합니다. scroll, slide, alternate의 값을 가지며 기본값은 scroll입니다.
direction : 텍스트가 흐르는 방향을 지정합니다. left, right, up, down의 값을 가지며 기본값은 left입니다.
width,height : 너비와 높이를 지정합니다. 값은 픽셀이나 퍼센트로 지정합니다.
샘플
<!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>marquee태그</h1>
<p> 물은 <marquee direction="down">위에서 아래로</marquee> 떨어집니다.</p>
</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>
- 이전글HTML 태그 - menu 14.12.11
- 다음글HTML 태그 - mark 14.12.11