Il tag HTML <time>


Descrizione

Il tag HTML <time> viene utilizzato per mostrare un testo in formato data e ora.

<!Doctype html>
<html>
<head>
<title>HTML time Tag</title>
</head>
<body>
<p>The time is <time>12:51 pm</time></p>
</body>
</html>

Produrrà il seguente risultato:

The time is

Attributi Globali

Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi

Attributi Specifici

The HTML <time> supporta anche i seguenti attributi aggiuntivi:

Attribute Value Descrizione
datetime HTML-5 datetime Indica un formato data e ora

Attributi Evento

Questo tag supporta tutti gli attributi evento descritti in - HTML - Referenze Eventi

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
Yes (6.0)Yes (4.0)Yes (9.0)Yes (11.1)Yes (5.0)No
html_tags_reference.htm
Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements