Is there a way to encode text inside an element in Emmet. For example if I want to create a would this be possible with emmet abbreviations?
Emmet abbreviations- text inside an element tag
12.7k views Asked by Omegaman At
4
There are 4 answers
0
On
The first example starts from 1 and the second example starts from 6
ul>li.item$*5
<ul>
<li class="item1"></li>
<li class="item2"></li>
<li class="item3"></li>
<li class="item4"></li>
<li class="item5"></li>
</ul>
ul>li.item$@6*5
<ul>
<li class="item6"></li>
<li class="item7"></li>
<li class="item8"></li>
<li class="item9"></li>
<li class="item10"></li>
</ul>
You can use curly braces to add text to an element.
For example
article{This is some text inside an article}
expands to<article>This is some text inside an article</article>