Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the naming rules for css

2026-08-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you what css naming rules are, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1) all names are preferably lowercase

2) the value of the attribute must be enclosed in double quotation marks (""), and must have values such as class= "CSS5", id= "CSS5"

3) each label should have a beginning and an end, and should have the correct level, and the typesetting should be regular and neat.

4), the empty element should have an ending tag or add "/" after the starting tag

5), presentation and structure are completely separated, and no expressive elements are involved in the code, such as style, font, bgColor, border, etc.

6), to the definition, should follow the principle from big to small, reflect the structure of the document, and is conducive to the search engine query.

7) add a unique, structural tag id to each table and form

8) tag the picture with alt

9). Use English naming principles as far as possible

10) try not to abbreviate, except for words that are easy to understand

These are all the contents of the article "what are the css naming rules?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

  • How does vue determine that the value is captured from its child components in a custom event

    This article mainly introduces how vue determines that the value is captured from its sub-components in custom events. It is very detailed and has a certain reference value. Friends who are interested must finish reading it! In a custom event, this value is the value captured from its child components

    12
    Report