Semantic Generic Element
- <Main> </Main>
- <nav> </nav>
- <Section> </Section.
- <article> </article>
- <aside></aside>
- <header></header>
- <footer></footer>
- <figure></figure>
- <data></data>
These all are the generic element used in place of div and they give perfect readability to a code.
Emmet tool
Short cut for HTML and CSS in Emmet tool, and pre-install in vs-code.
And to download the Emmet tool click the link https://emmet.io/
1.
Child: >
You can use > operator to nest elements inside each other:
div>ul>li2.
Sibling: +
Use + operator to place elements near each other, on the same level:
div+p+bq3.
Multiplication: *
With * operator, you can define how many times element should be outputted:
ul>li*54.
Grouping: ()
Parenthesises are used by Emmets’ power users for grouping subtrees in complex abbreviations:
div>(header>ul>li*2>a)+footer>p
Comments
Post a Comment