<time>

Description

You use the time element to represent a time of day or a date. The datetime attribute specifies the date or time in a format specified by RFC3339(http://tools.ietf.org/html/rfc3339).

Example


<!DOCTYPE HTML> 
<html> 
    <head> 
        <title>Example</title> 
    </head> 
<body> 
   <time datetime="15:00">3 o'clock</time> on 
   <time datetime="2011-12-7">December 7th</time>. 
</body> <!--from w w w .j  av a 2s. com-->
</html>

Click to view the demo

The code above generates the following result.

time




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference