2016-05-12 82 views

उत्तर

5

The general syntax for adding an attribute to an element in Emmet is:

element[attr=value] 

So in this case, it'd be:

a[href=www.google.com] 

That said, if you just do a by itself, it should automatically jump the editor cursor into the href attribute, and you can do a:link to pre-populate it with a http://. So those options might be faster/more to your tastes.

For more information, look at the Emmet Cheat Sheet में यूआरएल जोड़ना - यह उपलब्ध सभी वाक्यविन्यास सूचीबद्ध करता है।

7

थोड़ा कम:

a[www.google.com] 

बराबर है:

<a href="www.google.com"></a> 
+0

में प्रासंगिक भाग नहीं मिल पा [डॉक्स] (http://docs.emmet.io/) लेकिन यह काम करता है के लिए मुझे। – Pang

संबंधित मुद्दे