Summary of html and css naming rules and css naming Summary

Source: Internet
Author: User

Summary of html and css naming rules and css naming Summary

I. Description of naming rules

Ii. css style naming of an important part of the outer part of a webpage

Other css naming instructions

  • DIV + CSS naming Summary: whether it is to use ". "It doesn't matter if you choose to start with a symbol or use" # "to start with a symbol, but we 'd better follow the main, important, and special rules, the box on the outermost layer starts with "#", and ". "select the name starting with a symbol, and consider that the css selector should not be called repeatedly in html.

Iii. Examples of writing standards for class classes

  • . Font16px {font-size: 16px };
  • . Font18px {font-size: 18px };
  • . Barnews {};
  • . Barproduct {};
  • Margin: 0;
  • Padding: 0;

Iv. Label attribute naming rules

5. Notes

Vi. Image naming

 

Related Article

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.