Full-time web dev; JS lover since 2002; CSS fanatic. #CSSIsAwesome
I try to stay up with new web platform features. Web feature you don't understand? Tell me! I'll write an article!
He/him
It's true that if you don't specify a tag type, Emmet defaults to <div>, but it can produce whatever kind of tags you want. And in fact, it's often very few changes, since we often use stuff like id="header" or class="header" where we should just use tags, e.g. <header>. So with regards to Emmet, instead of this:
It's true that if you don't specify a tag type, Emmet defaults to
<div>
, but it can produce whatever kind of tags you want. And in fact, it's often very few changes, since we often use stuff likeid="header"
orclass="header"
where we should just use tags, e.g.<header>
. So with regards to Emmet, instead of this:which expands to:
you can use the semantic tag names along with any custom classes you want, if you feel you need them:
which expands to:
Did you have other concerns about using semantic tags with Emmet?