Home >Web Front-end >HTML Tutorial >CSS code syntax in HTML. _html/css_WEB-ITnose
css style consists of selector and declaration, and declaration in turn consists of attributes and value , as shown below:
Selector: is also called a selector, indicating that the style should be applied to the web page Rule elements
Declaration: is declared in English curly brackets "{}", and attributes and values are separated by English colons ":".
Note:
1. The last statement does not need a semicolon, but for the convenience of future modification, a semicolon is usually added.
Use in HtmlComment statement in CSS: Use /*Comment statement*/