Manuale di riferimento dei valori predefiniti CSS

Valori predefiniti CSS degli elementi HTML

La tabella seguente mostra i valori predefiniti CSS per tutti gli elementi HTML.

Elemento Valori CSS predefiniti TIY
a:link
  • color: (valore interno);
  • text-decoration: underline;
  • cursor: auto;
Prova
a:visited
  • color: (valore interno);
  • text-decoration: underline;
  • cursor: auto;
Prova
a:link:active color: (valore interno); Prova
a:visited:active color: (valore interno); Prova
abbr Nessuno.
address
  • display: block;
  • font-style: italic;
Prova
area display: none;
article display: block;
aside display: block;
audio Nessuno.
b font-weight: bold; Prova
base Nessuno.
bdi Nessuno.
bdo unicode-bidi: bidi-override;
blockquote
  • display: block;
  • margin-top: 1em;
  • margin-bottom: 1em;
  • margin-left: 40px;
  • margin-right: 40px;
Prova
body
  • display: block;
  • margin: 8px;
Prova
body:focus outline: none; Prova
br Nessuno.
button Nessuno
canvas Nessuno.
caption
  • display: table-caption
  • text-align: center;
Prova
cite font-style: italic; Prova
code font-family: monospace; Prova
col display: table-column; Prova
colgroup display: table-column-group Prova
datalist display: none;
dd
  • display: block;
  • margin-left: 40px;
Prova
del text-decoration: line-through; Prova
details display: block;
dfn font-style: italic; Prova
dialog Nessuno.
div display: block; Prova
dl
  • display: block;
  • margin-top: 1em;
  • margin-bottom: 1em;
  • margin-left: 0;
  • margin-right: 0;
Prova
dt display: block; Prova
em font-style: italic; Prova
embed:focus outline: none;
fieldset
  • display: block;
  • margin-left: 2px;
  • margin-right: 2px;
  • padding-top: 0.35em;
  • padding-bottom: 0.625em;
  • padding-left: 0.75em;
  • padding-right: 0.75em;
  • border: 2px groove (valore interno);
Prova
figcaption display: block;
figure
  • display: block;
  • margin-top: 1em;
  • margin-bottom: 1em;
  • margin-left: 40px;
  • margin-right: 40px;
Prova
footer display: block;
form
  • display: block;
  • margin-top: 0em;
Prova
h1
  • display: block;
  • font-size: 2em;
  • margin-top: 0.67em;
  • margin-bottom: 0.67em;
  • margin-left: 0;
  • margin-right: 0;
  • font-weight: bold;
Prova
h2
  • display: block;
  • font-size: 1.5em;
  • margin-top: 0.83em;
  • margin-bottom: 0.83em;
  • margin-left: 0;
  • margin-right: 0;
  • font-weight: bold;
Prova
h3
  • display: block;
  • font-size: 1.17em;
  • margin-top: 1em;
  • margin-bottom: 1em;
  • margin-left: 0;
  • margin-right: 0;
  • font-weight: bold;
Prova
h4
  • display: block;
  • margin-top: 1.33em;
  • margin-bottom: 1.33em;
  • margin-left: 0;
  • margin-right: 0;
  • font-weight: bold;
Prova
h5
  • display: block;
  • font-size: 0.83em;
  • margin-top: 1.67em;
  • margin-bottom: 1.67em;
  • margin-left: 0;
  • margin-right: 0;
  • font-weight: bold;
Prova
h6
  • display: block;
  • font-size: 0.67em;
  • margin-top: 2.33em;
  • margin-bottom: 2.33em;
  • margin-left: 0;
  • margin-right: 0;
  • font-weight: bold;
Prova
head display: none;
header display: block;
hr
  • display: block;
  • margin-top: 0.5em;
  • margin-bottom: 0.5em;
  • margin-left: auto;
  • margin-right: auto;
  • border-style: inserito;
  • border-width: 1px;
Prova
html
  • display: block;
  • html:focus
  • outline: none;
i font-style: italic; Prova
iframe:focus outline: none;
iframe[seamless] display: block;
img display: blocco inline; Prova
input Nessuno.
ins text-decoration: underline; Prova
kbd font-family: monospace; Prova
label cursor: predefinito; Prova
legend
  • display: block;
  • padding-left: 2px;
  • padding-right: 2px;
  • border: none;
Prova
li display: elenco;
link display: none;
main Nessuno.
map display: inline;
mark
  • background-color: giallo;
  • color: nero;
Prova
menu
  • display: block;
  • list-style-type: disc;
  • margin-top: 1em;
  • margin-bottom: 1em;
  • margin-left: 0;
  • margin-right: 0;
  • padding-left: 40px;
menuitem Nessuno.
meta Nessuno.
meter Nessuno.
nav display: block;
noscript Nessuno.
object:focus outline: none;
ol
  • display: block;
  • list-style-type: decimale;
  • margin-top: 1em;
  • margin-bottom: 1em;
  • margin-left: 0;
  • margin-right: 0;
  • padding-left: 40px;
Prova
optgroup Nessuno.
opzione Nessuno.
output display: inline;
p
  • display: block;
  • margin-top: 1em;
  • margin-bottom: 1em;
  • margin-left: 0;
  • margin-right: 0;
Prova
param display: none;
picture Nessuno.
pre
  • display: block;
  • font-family: monospace;
  • white-space: pre;
  • margin: 1em 0;
Prova
progress Nessuno.
q display: inline; Prova
q::before content: open-quote; Prova
q::after content: close-quote; Prova
rp Nessuno.
rt line-height: normal;
ruby Nessuno.
s text-decoration: line-through; Prova
samp font-family: monospace;
script display: none;
section display: block; Prova
select Nessuno.
small font-size: smaller; Prova
source Nessuno.
span Nessuno.
strike text-decoration: line-through; Prova
strong font-weight: bold; Prova
style display: none;
sub
  • vertical-align: sub;
  • font-size: smaller;
Prova
summary display: block;
sup
  • vertical-align: super;
  • font-size: smaller;
Prova
table
  • display: table;
  • border-collapse: separate;
  • border-spacing: 2px;
  • border-color: gray;
Prova
tbody
  • display: table-row-group;
  • vertical-align: middle;
  • border-color: inherit;
td
  • display: table-cell;
  • vertical-align: inherit;
template Nessuno.
textarea Nessuno.
tfoot
  • display: table-footer-group;
  • vertical-align: middle;
  • border-color: inherit;
th
  • display: table-cell;
  • vertical-align: inherit;
  • font-weight: bold;
  • text-align: center;
thead
  • display: table-header-group;
  • vertical-align: middle;
  • border-color: inherit;
time Nessuno.
title display: none;
tr
  • display: table-row;
  • vertical-align: inherit;
  • border-color: inherit;
track Nessuno.
u text-decoration: underline; Prova
ul
  • display: block;
  • list-style-type: disc;
  • margin-top: 1em;
  • margin-bottom: 1 em;
  • margin-left: 0;
  • margin-right: 0;
  • padding-left: 40px;
Prova
var font-style: italic; Prova
video Nessuno.
wbr Nessuno.