HTML5 동영상강좌 바로가기 

댓글 목록

HTML 태그 - tr

페이지 정보

작성자 운영자 작성일 14-12-11 15:16 조회 6,467 댓글 0

본문

 

HTML 태그 - tr

<tr>태그는 <table>내에서 표의 행을 표시할 때 사용합니다. <td>태그를 포함합니다.

속성

표속성은 대부분 CSS로 표현해야 합니다.


샘플

<!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>tr태그</h1>         
   <table> 
   <caption>caption</caption>
   <colgroup>
   <col >
   <col >
   </colgroup>
   <thead>
   <tr>
   <th>header #1</th>
   <th>header #2</th>
   </tr>
   </thead>
   <tfoot>
           <tr>
   <td>footer #1</td>
   <td>footer #2</td>
   </tr>
   </tfoot>
   <tbody>
   <tr>
   <td>body #1</td>
   <td>body #2</td>
   </tr>
   </tbody>           
   </table>       
  </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 동영상강좌 바로가기