HTML5 동영상강좌 바로가기 

댓글 목록

HTML 태그 - spacer

페이지 정보

작성자 운영자 작성일 14-12-11 14:41 조회 6,976 댓글 0

본문

 

HTML 태그 - spacer

<spacer>태그는 웹페이지에 공백을 삽입하기 위해 사용합니다. HTML5에서 삭제되었습니다.

속성

type : 공백의 유형을 결정합니다. 값으로는 horizontal, vertical, block.

size : 공백의 크기를 결정합니다.

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>spacer태그</h1> 
   <span>즐거운 날입니다. </span> 
   <spacer type="horizontal" size="10"> </spacer>
   <span>나들이 하기 좋은 날입니다. </span> 
   <spacer type="block" width="10" height="10"> </spacer> 
  </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> 

댓글목록 0

등록된 댓글이 없습니다.


HTML5 동영상강좌 바로가기