anandisrocking007
1/7/2018 - 9:29 AM

02) Emmet-Attribute

  1. Emmet-Attribute
ADDING CUSTOM ATTRIBUTES IN TAGS------------------

p[title="Hello world"]  |  <p title="Hello world"></p>

td[rowspan=2 colspan=3 title]  |  <td rowspan="2" colspan="3" title=""></td>


ADDING CUSTOM ATTRIBUTE IN DIV TAGS------------------

[a='value1' b="value2"]  |  <div a="value1" b="value2"></div>
FOR DIV----------------

CLASS:- .title  |  <div class="title"></div>

ID:- #title  |  <div id="title"></div>


FOR OTHER TAGS----------------

h1.title  |  <h1 class="title"></h1>

h2#title  |  <h2 id="title"></h2>


MULTIPLE ATTRIBUTES IN TAGS---------------

.hel#pal  |  <div class="hel" id="pal"></div>

p.class1.class2.class3  |  <p class="class1 class2 class3"></p>

form#search.wide  |  <form id="search" class="wide"></form>