Skip to content

Instantly share code, notes, and snippets.

@kresnasatya
Created March 22, 2019 04:36
Show Gist options
  • Save kresnasatya/0e09f4da85dbaa38d2e051e00dbc252c to your computer and use it in GitHub Desktop.
Save kresnasatya/0e09f4da85dbaa38d2e051e00dbc252c to your computer and use it in GitHub Desktop.
Time tag
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Time - Web Semantics</title>
</head>
<body>
<article>
<header>
<h1>Semantic HTML</h1>
<p>By Troy McClure. Published
<!-- Voice over will read the content of "time" tag as "group, editable" on Chrome
Voice over will read the content of "time" tag as "January 3rd, 3 January 2017" on Safari -->
<time datetime='2017-01-03'>January 3rd</time></p>
</header>
</article>
<time datetime='2017-1-3 08:00-15:00'>January 3rd</time>
<br>
<a href="./index.html">Back</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment