<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
vince13mo 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
Chaves13mo ago
@vince Hey could you help me again?
vince
vince13mo ago
what's up
Chaves
Chaves13mo ago
No description
Chaves
Chaves13mo ago
How do I position this svg absolutely relative to the text inside my <button> tag?
Chaves
Chaves13mo ago
No description
Chaves
Chaves13mo ago
No description
vince
vince13mo ago
you dont position it absolutely, use flexbox
Chaves
Chaves13mo ago
Do I have to make my button become a flex-container?
vince
vince13mo ago
yes
Chaves
Chaves13mo ago
holy shit it worked
Chaves
Chaves13mo ago
No description
Chaves
Chaves13mo ago
No description
vince
vince13mo ago
use regular flex
Chaves
Chaves13mo ago
is there a difference? in this case
vince
vince13mo ago
yes
vince
vince13mo 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
Chaves13mo ago
thanks
vince
vince13mo 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
Want results from more Discord servers?
Add your server