diff --git a/curriculum/challenges/english/blocks/lecture-working-with-text-and-time-semantic-elements/672995f16ed97837b365a9f6.md b/curriculum/challenges/english/blocks/lecture-working-with-text-and-time-semantic-elements/672995f16ed97837b365a9f6.md index 415f0710c4e..fae385dbdc0 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-text-and-time-semantic-elements/672995f16ed97837b365a9f6.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-text-and-time-semantic-elements/672995f16ed97837b365a9f6.md @@ -5,16 +5,20 @@ challengeType: 19 dashedName: how-do-you-display-times-and-dates-in-html --- -# --description-- +# --interactive-- The `time` element is used to represent a specific moment in time. Here is an example using the `time` element to represent twenty hundred hours, or eight PM in the evening. +:::interactive_editor + ```html

The reservations are for

``` +::: + The `datetime` attribute is used to translate dates and times into a machine-readable format. This is important, because it helps with search engine results and helps the browser process date and time information more effectively. @@ -23,12 +27,16 @@ The value for the `datetime` attribute must be either a valid year, valid month, Here is another example of using the time element to represent a particular date: +:::interactive_editor + ```html

The graduation will be on

``` +::: + The value for the `datetime` attribute is in the ISO 8601 format. ISO 8601 is an international standard to represent dates and times. The first part of that value is the year, month and day. The capital T in the value is a separator between the date and time.