Assessment help wanted - Marking up a letter

The code is looking fine, more or less similar to the example.

But I get an error running the validator:

Element date not allowed as child of element li in this context


Using the time-element seemed the most appropriate option to create machine-readable dates. But, it seems it doesn’t nest well within de li-element.

Task page:

Solution code:


Hi @carl_sys and welcome to the community :wave:

Congratulations, great work! :sparkles:

Here are a few comments:

  • You can omit the last <br> in the first address since it automatically breaks the line.
  • Self-closing elements don’t need the a slash at the end (e. g. <br> is okay).
  • The semester dates should be in <time> elements not <date>. <date> doesn’t exist. (This should answer your question, I think.)
  • You could wrap The memoirs of Bill S Preston, <abbr title="esquire">Esq</abbr> in a <cite> element because it’s the source of the quote.

I hope that helps. :slightly_smiling_face:


PS: Your email address is visible in your post. It ended up in the optional “name” field of your profile. I recommend removing it.