4 ms·
Then write a browser plugin that does these things to the <time> element. Personally I always use the <time> element when providing date or time. Properly loca
by runarberg 11mo ago
Then write a browser plugin that does these things to the <time> element.
Personally I always use the <time> element when providing date or time. Properly localized with Intl.DateTimeFormat and ISO string formatted in the datetime attribute. I do it mostly because it is free. For a developer writing <time> instead of <span> makes no difference. <time> is easier to target in tests, and maybe my users has a browser plugin that can quickly e.g. add a thing to their day planner app from a <time> element.