Learn Emmet (Zend Coding) and then start thinking about CSS or jquery selectors

Source: Internet
Author: User

1. Develop HTML fast coding using VS or other editors. Using Emmet, this easy-to-use syntax is undoubtedly the quickest

First look at this code to remember this basically Emmet will be used, remember to put the cursor at the end of the expression press the TAB key

1 <!--2 Html:53 1. E represents the HTML tag. 4 2. E#id represents the id attribute. 5 3. E.class represents the Class attribute. 6 4. E[attr=foo] represents a specific attribute. 7 5. E{foo} means that the tag contains foo. 8 6. E>n means that N is a child element of E. 9 7. E+n means that N is the sibling element of E. Ten 8. E^n represents N is the superior element of E One ul#nav>li.item*4>a[href= ' http://www.baidu.com ']{test} A table> (thead>tr>th*5) + (tbody>tr>td*5) -  -

A small animation, by the way to practice writing blog amount, suddenly appear code to indicate that pressed the TAB key

2. Here is the text

In fact, for the CSS and jquery plus emment is actually used in the same way, the following comparison chart: ( know this I believe that novice players using the selector is more easily remembered )

Jquery:

Css:

Here are the highlights :

A. What syntax criteria does the browser use to parse?

B. Who prescribes the grammatical criteria for such selectors?

C. Similar to XPath and different, what kind of connection do they have?

Hope that one day the Daniel see can help answer, whistling ...

Learn Emmet (Zend Coding) and then start thinking about CSS or jquery selectors

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.