The basic syntax of CSS is like below.
selector {
property: value;
}
The selector selects which element of HTML tag.
The CSS block is specified by { }.
The property means which property is applied to the selected tag.
The value means what value is applied to the specified property.
The : has to be located between property and value.
The ; has to be located after the value.
This is the example.
div {
width: 100px;
height: 200px;
background-color: tomato;
}
'Web > CSS' 카테고리의 다른 글
[CSS] Flexbox (0) | 2020.08.28 |
---|---|
[CSS] BEM (Block Element Modifier) (0) | 2020.08.28 |
[CSS] Pseudo Classes and Pseudo Elements (0) | 2020.08.27 |
[CSS] Combinators (0) | 2020.08.26 |
[CSS] Basic / Grouping Selector (0) | 2020.08.24 |
댓글