There are some issues with the markup on this that are really foundational. Rather than go through them all here, I’ll point you to an article I wrote about planning html that looks at this specific challenge: https://fedmentor.dev/posts/html-plan-product-preview/.
The only thing that’s less relevant now is that from what I understand screen readers now announce strike through text, so you may not need to add the screen reader only text any more about the old price. I need to check that then I’ll update the article.
I hope it helps anyway.
@laura-nguyen
Posted
@grace-snow That article was a great read, thanks for sharing! There were a lot of concepts that I learned, such as the <picture> tag and the strike-through text.