![]() |
Definition and UsageThe When used together with the Applies toThe
Browser SupportThe |
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The del datetime attribute</h1>
<p><del datetime="2015-11-15T22:55:03Z">This text has been deleted</del></p>
</body>
</html>
This is a text. This is an inserted text.
Note: The datetime attribute does not render as anything special in any of the major browsers.
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The ins datetime attribute</h1>
<p>This is a text. <ins datetime="2015-09-15T22:55:03Z">This is an inserted text.</ins></p>
<p><b>Note:</b> The datetime attribute does not render as anything special in any of the major browsers.</p>
</body>
</html>
I have a date on Valentines day.
Note: The time element does not render as anything special in any of the major browsers.
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The time datetime attribute</h1>
<p>I have a date on <time datetime="2017-02-14 20:00">Valentines day</time>.</p>
<p><b>Note:</b> The time element does not render as anything special in any of the major browsers.</p>
</body>
</html>
html datetime attribute |
How to add A deleted text with a date and time of when the text was deleted | HTML Attribute |
How to add An inserted text with a date and time of when the text was inserted | HTML Attribute |
How to add A time element with a machine-readable datetime attribute | HTML Attribute |
Read Full: | HTML Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |
Views: | 69 |
Reffered: https://www.w3schools.com/tags/att_datetime.asp