Professional Documents
Culture Documents
Chuong 02 GioiThieuCSS
Chuong 02 GioiThieuCSS
selector {
Tagname
Selector
Property1: value1;
Property2: value2;
Property3: value3;
Class
} ID
Thuộc tính của FONT
Property Values
inline | block | run-in | flex | grid | flow |
flow-root | list-item |
table | table-row-group | table-header-
group | table-footer-group |
table-row | table-cell | table-column-group |
table-column |
Display
table-caption | ruby | ruby-base | ruby-text
| ruby-base-container |
ruby-text-container | inline-block | inline-
table | inline-flex |
inline-grid | contents | none
Thuộc tính của Box
Property Value
width length | percentage | auto
border-top-left-radius
length | percentage
border-top-right-radius
length | percentage
border-bottom-right-radius
length | percentage
border-bottom-left-radius
length | percentage
Nhóm CSS về Margin
Property Values
Margin-right
length | percentage | auto
Property Values
padding-right
length | percentage | auto
Property Values
outline-style auto | solid | none | dotted | dashed | double | groove | ridge | inset | outset
Inline
Internal
External
Inline
<header>
<link rel="stylesheet" type="text/css" href=“lam.css“/>
</header>
.nnl {
lam.css
color:red;
}
Đường dẫn trong HTML
• Quy tắc :
Đường dẫn
• Bên trong thư mục: / tương đối
Bên ngoài thư mục: ../
Bài tập 01
Bài tập 01
Bài tập 02
Bài tập 03
Tài liệu tham khảo
2. https://www.w3schools.com/html/default.asp
Xin chân thành cảm ơn !