How css styles are made up
This article mainly introduces how the css style is composed, the article introduces in great detail, has a certain reference value, interested friends must read it!
1. Each css style consists of two parts, a selector and a declaration, which is divided into attributes and attribute values.
2. The attribute must be placed in curly braces, and the attribute and attribute value must be connected with a colon.
Each statement ends with a semicolon. Property values and attribute values are in no particular order.
Selector {attribute: attribute value;} div {width:500px; height:500px;}
Establishment of the style:
Internal style
Syntax: css statement background: background color div {width:500px;height:500px; background:#096} above is all the content of this article "how css styles are made up". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!