<h1> or <p>
Guys, I have a question regarding the perfume text above the card title, would it just be a <p> or should it be an <h2>? In my opinion, PERFUME is part of a product category, perhaps a user with a screen reader would navigate through these categories using <h2>. What is the best choice in this situation?
19 Replies
I use p for overlines. Headings should be in subsequent order so having an h2 followed by an h1 doesn't make much sense semantically
@vince Hey
could you help me again?
what's up
How do I position this svg absolutely relative to the text inside my <button> tag?
you dont position it absolutely, use flexbox
Do I have to make my button become a flex-container?
yes
holy shit
it worked
use regular
flex
is there a difference?
in this case
yes
Stack Overflow
What's the difference between display:inline-flex and display:flex?
I am trying to vertically align elements within an ID wrapper. I gave the property display:inline-flex; to this ID as the ID wrapper is the flex container.
But there is no difference in presentati...
thanks
so according to that SO answer there isn't a difference but I take
inline-flex
to be well, inline (even if it isnt). flex
just seems more semantic to me