Home >Web Front-end >HTML Tutorial >CSS code syntax in HTML. _html/css_WEB-ITnose

CSS code syntax in HTML. _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:54:03956browse

CSS code syntax

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 Html

Comment statement in CSS: Use /*Comment statement*/

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn