P. Ricardo• 2,370
@pRicard0
Posted
HTML tips
- Add
aria-hidden="true"
andfocusable="false"
to the SVG element to hide it from technologies such as screen readers. - Instead of using the tag
<p>
with the text "$149.99", you can use the<em>
tag. The<em>
tag is used to define emphasized text. The content inside is typically displayed in italic. A screen reader will pronounce the words in<em>
with an emphasis, using verbal stress. - You can use the tag
<s>
instead of the tag<span>
with the text "$169.99". The<s>
tag specifies text that is no longer correct, accurate or relevant. The text will be displayed with a line through it by default.
CSS tips
- You can add
transition: 200ms;
to your button for a smoother color change.
Marked as helpful
1
mihai2537• 190
@mihai3636
Posted
Thanks a lot
Very helpful information, I will remember all of these in the future.
0