Home > Article > Web Front-end > Detailed description of CSS cascading style sheets
========================
CSS CascadingStyle Sheet
= =======================
Naming rules: use letters, numbers or underscores and minus signs Composition, do not start with a number
1. CSS syntax
------------------ -----------
Format: Selector{property:value;property:value;property:value;....}
The selector is also called the selector
Comment in CSS: /* ... */
2. How to use css style in HTML (the way to embed css in html);
--------------------- ----------------------------------
1. Inline mode (inline style)
Use the style attribute in the HTML tag to set the css style
Format: <html tag style="Attribute: value; Attribute: value;...."> ;Modified content