[Reading notes] The way of the Web front-end development cultivation

Source: Internet
Author: User

Original address: http://www.cnblogs.com/bnbqian/p/3735565.html reprint please indicate the source

The book that we are going to read today is the way of Web front-end development

The 1th chapter starts from the reconstruction of the website 1.1 bad realization, headache maintenance

Once, the page code is very messy.

1.2 WEB standards, structure, style and behavior separation

Separated.

1.3 Front-end status

People are uneven.

Summary:

This chapter is equivalent to an introduction.

The 2nd chapter of the Team cooperation summary:

Teamwork and communication This is always a good topic to count words.

3rd. The semantics of high-quality HTML3.1 tags

Tags are semantically, except for div and span.

3.2 Why should I make a semantic label

Make the HTML structure more clear.

3.3 Semantic good criteria for judging

Take off the CSS and look behind your coat.

3.4 Example
    • Use less div and span
    • P and Div Precedence selection P
    • No plain style labels
Summary

The important method of high-quality HTML is to use semantic tags appropriately.

4th. High-quality CSS4.1 weird patterns and DTDs

DTD (Data Type Definition), IE will parse in weird mode if the DTD type is not declared.

4.2 How to organize CSS
    • Base.css + common.css + page.css
    • Universal + Project + Flexible
4.3 Recommended base.css

This is good, it is recommended

4.4 Modular CSS4.4.1 How to divide modules

This chapter is about

4.4.2 Namespace for CSS

Name class in the same way that classes and attributes are referenced.

4.4.3 Multi-use combination, less inheritance

To put it bluntly is to hang multiple class

4.4.4 Margin Issue

Do not mix with MT MB

4.5 Low weight principle

Do not abuse child selectors

4.6 CSS Sprite

No, it's not a problem.

FAQ for 4.7 CSS 4.7.1 Multi-line and one-line

Single

4.7.2 ID or class

From a CSS point of view, it is recommended to use a multi-class

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.