Design comparison
SolutionDesign
Solution retrospective
Hi all,
what would be the best way to markup the "old price" for accessibility purposes?
Thanks, Miran
Community feedback
- @qrhfzPosted about 2 years ago
Hi, congratulation on finishing this challenge.
"what would be the best way to markup the "old price" for accessibility purposes?"
I read that using <s> is semantically better.
This is what MDN doc says
"The <s> HTML element renders text with a strikethrough, or a line through it. Use the <s> element to represent things that are no longer relevant or no longer accurate. However, <s> is not appropriate when indicating document edits; for that, use the <del> and <ins> elements, as appropriate."
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord