HTML5 동영상강좌 바로가기 

댓글 목록

HTML 태그 - time

페이지 정보

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

본문

 

HTML 태그 - time

<time>태그는 24시간방식의 시간, 그레고리력의 완전한 날짜 정보를 나타낼 때 사용합니다. HTML5에서 추가되었습니다.

속성

datetime : 요소의 시간과 날짜를 지정합니다. 선택시 문자열이 유효한 날짜여야 합니다.

pubdate : 부울(true, false)속성입니다. 이 속성이 지정될 경우, 요소의 날짜와 시간정보는 문서의 발행일이 됩니다.


샘플

<!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>time태그</h1>         
   <p>
   조용필의 19주기 콘서트는 <time> 20:00 </time> 
   에 시작합니다.
   </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> 

댓글목록 0

등록된 댓글이 없습니다.


HTML5 동영상강좌 바로가기