Articles → HTML 5 → Time Tag In Html5
Time Tag In Html5
Human-Readable Vs Machine-Readable Information
- Humans can understand.
- Encoded in ASCII or Unicode text.
- Requires more storage than machine-readable information.
- Machine can understand
- Humans cannot understand
- Encoded in binary
- Requires less storage than human-readable information.
Time Tag
Syntax
<time>time_specified</time>
Example
<!DOCTYPE html>
<html>
<body>
<p>We will meet at <time>10:00 AM</time> tomorrow.</p>
</body>
</html>
Try It
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
9.0 | 4.0 | 6.0 | 5.0 | 11.1 | Yes |
Datetime Attribute
<!DOCTYPE html>
<html>
<body>
<p>We will meet at <time datetime="2019-06-02 18:00">10:00 AM</time> tomorrow. </p>
</body>
</html>
Try It