<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?
No description
19 Replies
vince
vince8mo ago
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
Chaves
Chaves8mo ago
@vince Hey could you help me again?
vince
vince8mo ago
what's up
Chaves
Chaves8mo ago
No description
Chaves
Chaves8mo ago
How do I position this svg absolutely relative to the text inside my <button> tag?
Chaves
Chaves8mo ago
No description
Chaves
Chaves8mo ago
No description
vince
vince8mo ago
you dont position it absolutely, use flexbox
Chaves
Chaves8mo ago
Do I have to make my button become a flex-container?
vince
vince8mo ago
yes
Chaves
Chaves8mo ago
holy shit it worked
Chaves
Chaves8mo ago
No description
Chaves
Chaves8mo ago
No description
vince
vince8mo ago
use regular flex
Chaves
Chaves8mo ago
is there a difference? in this case
vince
vince8mo ago
yes
vince
vince8mo ago
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...
Chaves
Chaves8mo ago
thanks
vince
vince8mo ago
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