Sách tham khảo giá trị mặc định CSS
- Trang trước Giá trị màu CSS
- Trang tiếp theo Thực thể CSS
Giá trị mặc định CSS của thành phần HTML
Bảng dưới đây hiển thị tất cả các giá trị mặc định CSS của trình duyệt cho tất cả các thành phần HTML.
Thành phần | Giá trị CSS mặc định | TIY |
---|---|---|
a:link |
|
Thử thử |
a:visited |
|
Thử thử |
a:link:active | color: (giá trị nội bộ); | Thử thử |
a:visited:active | color: (giá trị nội bộ); | Thử thử |
abbr | None. | |
address |
|
Thử thử |
area | display: none; | |
article | display: block; | |
aside | display: block; | |
audio | None. | |
b | font-weight: bold; | Thử thử |
base | None. | |
bdi | None. | |
bdo | unicode-bidi: bidi-override; | |
blockquote |
|
Thử thử |
body |
|
Thử thử |
body:focus | outline: none; | Thử thử |
br | None. | |
button | None | |
canvas | None. | |
caption |
|
Thử thử |
cite | font-style: italic; | Thử thử |
code | font-family: monospace; | Thử thử |
col | display: table-column; | Thử thử |
colgroup | display: table-column-group | Thử thử |
datalist | display: none; | |
dd |
|
Thử thử |
del | text-decoration: line-through; | Thử thử |
details | display: block; | |
dfn | font-style: italic; | Thử thử |
dialog | None. | |
div | display: block; | Thử thử |
dl |
|
Thử thử |
dt | display: block; | Thử thử |
em | font-style: italic; | Thử thử |
embed:focus | outline: none; | |
fieldset |
|
Thử thử |
figcaption | display: block; | |
figure |
|
Thử thử |
footer | display: block; | |
form |
|
Thử thử |
h1 |
|
Thử thử |
h2 |
|
Thử thử |
h3 |
|
Thử thử |
h4 |
|
Thử thử |
h5 |
|
Thử thử |
h6 |
|
Thử thử |
head | display: none; | |
header | display: block; | |
hr |
|
Thử thử |
html |
|
|
i | font-style: italic; | Thử thử |
iframe:focus | outline: none; | |
iframe[seamless] | display: block; | |
img | display: inline-block; | Thử thử |
input | None. | |
ins | text-decoration: underline; | Thử thử |
kbd | font-family: monospace; | Thử thử |
label | cursor: default; | Thử thử |
legend |
|
Thử thử |
li | display: list-item; | |
link | display: none; | |
main | None. | |
map | display: inline; | |
mark |
|
Thử thử |
menu |
|
|
menuitem | None. | |
meta | None. | |
meter | None. | |
nav | display: block; | |
noscript | None. | |
object:focus | outline: none; | |
ol |
|
Thử thử |
optgroup | None. | |
chọn | None. | |
output | display: inline; | |
p |
|
Thử thử |
param | display: none; | |
picture | None. | |
pre |
|
Thử thử |
progress | None. | |
q | display: inline; | Thử thử |
q::before | content: open-quote; | Thử thử |
q::after | content: close-quote; | Thử thử |
rp | None. | |
rt | line-height: normal; | |
ruby | None. | |
s | text-decoration: line-through; | Thử thử |
samp | font-family: monospace; | |
script | display: none; | |
section | display: block; | Thử thử |
select | None. | |
small | font-size: smaller; | Thử thử |
source | None. | |
span | None. | |
strike | text-decoration: line-through; | Thử thử |
strong | font-weight: bold; | Thử thử |
style | display: none; | |
sub |
|
Thử thử |
summary | display: block; | |
sup |
|
Thử thử |
table |
|
Thử thử |
tbody |
|
|
td |
|
|
template | None. | |
textarea | None. | |
tfoot |
|
|
th |
|
|
thead |
|
|
time | None. | |
title | display: none; | |
tr |
|
|
track | None. | |
u | text-decoration: underline; | Thử thử |
ul |
|
Thử thử |
var | font-style: italic; | Thử thử |
video | None. | |
wbr | None. |
- Trang trước Giá trị màu CSS
- Trang tiếp theo Thực thể CSS