Home >Web Front-end >HTML Tutorial >CSS naming convention_html/css_WEB-ITnose
1. Order class, id, name
2. Add dashes to the name letters, make it as short as possible, use the parent class as the prefix, the js- prefix represents the behavior and does not write to the css file class="btn btn-red js-cry"
3. Two spaces to replace the tab character