Basic CSS syntax and basic css syntax
I. CSS syntax:
CSS syntax rules are composed of two parts:
(1). selector: it is used to match the elements to apply css code.
(2). Rules: attribute declaration statement, used to control the expression of an element. The attribute and attribute value must be separated by a colon. If there are multiple declaration statements, they are separated by semicolons. The last statement can be omitted after the semicolon.
Selector {Rules}
Example of Code 2:
<! Doctype html>
The code above allows you to set the size of the div element and has a dotted border.
The attribute and attribute values are separated by a colon (:). If multiple statements exist, they are separated by a semicolon. The last statement can be omitted by a semicolon.
Iii. Case sensitivity:
CSS is case insensitive, but it is recommended to use lower case.
Http://www.softwhy.com/article-417-1.html
Http://www.softwhy.com/qiduan/css_source/