Rules in default style sheets

This page was last modified on 4 May 2012, at 8:00. © 2012 @TorigoeKogyo on Twitter

Selectors
Properties

What surveyed

Web browsers and their versions surveyed its default style sheet (a UA's default style sheet) are as follows:

References related to sample default styling are as follows:

Browse by element

Rules in default style sheets for Document Structure
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
html display block block block block block block
overflow auto scroll
background-color white
color black
Rules in default style sheets for Document Head
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
title display none none none none none
base display none none
meta display none none none none none
style display none none none none none
script display none none none none none
Rules in default style sheets for Document Body
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
body display block block block block block block
overflow auto scroll
margin 15px 10px8px 8px 8px 8px 8px 8px
background-color white
line-height 1.33
div display block block block block block block
Rules in default style sheets for Paragraphs
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
p display block block block block block block
margin 1em 0 1em 0 1em 0 1em 0 1em 0 1.33em 01.12em 0
Rules in default style sheets for Headings
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
h1 display block block block block block block
margin .67em 0 .67em 0 .67em auto.67em 0 .67em 0 .67em 0 .67em 0
font-weight 700 bold bolderbold bold 700 bolder
font-size 24pt2em 2em 2em 2em 2em 2em
h2 display block block block block block block
margin .83em 0 .83em 0 .83em auto.83em 0 .83em 0 .83em 0 .83em 0.75em 0
font-weight 700 bold bolderbold bold 700 bolder
font-size 18pt1.5em 1.5em 1.5em 1.5em 1.5em 1.5em
h3 display block block block block block block
margin 1em 0 1em 0 1em auto1em 0 1em 0 1em 0 1em 0.83em 0
font-weight 700 bold bolderbold bold 700 bolder
font-size 13.55pt1.17em 1.17em 1.17em 1.17em 1.17em 1.17em
h4 display block block block block block block
margin 1.33em 0 1.33em 0 1.33em auto1.33em 0 1.33em 0 1em 0 1.33em 01.12em 0
font-weight 700 bold bolderbold bold 700 bolder
h5 display block block block block block block
margin 1.67em 0 1.67em 0 1.67em auto1.67em 0 1.67em 0 1.67em 0 1.67em 01.5em 0
font-weight 700 bold bolderbold bold 700 bolder
font-size 10pt.83em .83em .83em .83em .83em .83em
line-height 1.17em
h6 display block block block block block block
margin 2.33em 0 2.33em 0 2.33em auto2.33em 0 2.33em 0 2.33em 0 2.33em 01.67em 0
font-weight 700 bold bolderbold bold 700 bolder
font-size 7.55pt.67em .67em .67em .67em .67em .67em.75em
Rules in default style sheets for Lists
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
ul display block block block block block block
margin-top 1em 1em 1em 1em 1em 1.33em1.12em
margin-bottom 1em 1em 1em 1em 1em 1.33em1.12em
margin-left 30px 40px
padding-left 30pt 40px 40px 40px 40px
list-style-type disc disc disc disc disc
list-style-position outside
ol display block block block block block block
margin-top 1em 1em 1em 1em 1em 1.33em1.12em
margin-bottom 1em 1em 1em 1em 1em 1.33em1.12em
margin-left 30px 40px
padding-left 30pt 40px 40px 40px 40px
list-style-type decimal decimal decimal decimal decimal decimal
list-style-position outside
li display blocklist-item list-item list-item list-item list-item list-item
text-align match-parent
dl display block block block block block block
margin-top 1em 1em 1em 1em 1em 1.33em1.12em
margin-bottom 1em 1em 1em 1em 1em 1.33em1.12em
dt display block block block block block block
dd display block block block block block block
margin-left 30pt40px 40px 40px 40px 40px 40px
  • ul ul
  • ol ul
margin-top 0 0 auto0 0 0 0
margin-bottom 0 0 auto0 0 0 0
list-style-type circle circle circle circle
  • ul ol
  • ol ol
margin-top 0 0 auto0 0 0 0
margin-bottom 0 0 auto0 0 0 0
  • dl ul
  • dl ol
  • ul dl
  • ol dl
  • dl dl
margin-top 0
margin-bottom 0
ul ul ul list-style-type square square square square
  • ol ul ul
  • ul ol ul
  • ol ol ul
list-style-type square square square square
Rules in default style sheets for Address
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
address display block block block block block block
padding 0 2px
font-style italic italic italic italic italic italic
Rules in default style sheets for Horizontal Rule
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
hr display block block block block block block
box-sizing border-box
height 2px 0
overflow hidden
margin 0.5em auto 0.5em auto 12px 1px12px auto0.5em auto 0.5em auto 10px 00.5em auto
border 1px inset 1px -moz-bg-inset1px inset 1px inset 1px inset 1px inset 1px inset
color gray
text-align center center
Rules in default style sheets for Preformatted Text
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
pre display block block block block block block
margin 1em 0 1em 0 1em 0 1em 0 1em 0
font-family "Courier New" -moz-fixed monospace monospace "MS ゴシック"use-lang-def monospace
font-size 10pt .81em
white-space pre pre pre pre pre pre
Rules in default style sheets for Block-like Quotes
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
blockquote display block block block block block block
margin auto 30pt1em 40px 1em 40px 1em 40px 1em 40px 1em 10px 1em 40px 1.33em 40px1.12em 40px
Rules in default style sheets for Inserted/Deleted Text
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
ins text-decoration underline underline underline underline underline underline
del text-decoration line-through line-through line-through line-through line-through line-through
Rules in default style sheets for The Anchor Element
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
text-decoration underline underline underline underline underline underline
a:visited color purple#810081purple #551a8b navy#551a8b-khtml-link-webkit-link -webkit-link purple purple
text-decoration underline underline underline underline underline underline
Rules in default style sheets for Inline Elements
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
br::before white-space pre-line
content "\A"
em font-style italic italic italic italic italic italic
strong font-weight 700 bolder bolder bolderbold 700 bolder
dfn font-style italic italic italic italic
code font-family "Courier New" -moz-fixed monospace monospace "MS ゴシック"use-lang-def monospace
font-size 10pt .81em
samp font-family "Courier New" -moz-fixed monospace monospace "MS ゴシック"use-lang-def monospace
font-size 10pt .81em
kbd font-family "Courier New" -moz-fixed monospace monospace "MS ゴシック"use-lang-def monospace
font-size 10pt .81em
var font-style italic italic italic italic italic italic
cite font-style italic italic italic italic italic italic
abbr font-style italic
font-variant small-caps
letter-spacing .1em
abbr[title] border-bottom 1px dotted 1px dotted
q quotes '"' '"' "'" "'"
q::before content open-quote '"' open-quote
q::after content close-quote '"' close-quote
sub font-size 10pt.83em smaller smaller smaller .83em
line-height normal
vertical-align sub sub sub sub sub sub
sup font-size 10pt.83em smaller smaller smaller .83em
line-height normal
vertical-align super super super super super super
i font-style italic italic italic italic italic italic
b font-weight 700 bolder bolder bolderbold 700 bolder
small font-size 10pt.83em smaller smaller smaller .83em
Rules in default style sheets for Object
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
object display block
width 300px
height 150px
overflow hidden hidden
object[usemap] border 2px solid
color blue
param display none none none
Rules in default style sheets for Images
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
img overflow hidden hidden
img[usemap] border 2px solid
color blue
  • :visited img
border 2px solid 2px solid
Rules in default style sheets for Client-side image maps
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
map display block
area display nonenone !important none none none
Rules in default style sheets for Tables
Selectors Property UA's default values Appendix D
IE Firefox Safari Chrome Opera
table display blocktable table table table table table
box-sizing border-box border-box
border-color #ece9d8 gray gray
border-collapse separate separate separate separate
border-spacing 2px 2px 2px 2px 2px 2px
text-align -konq-auto-khtml-auto
text-indent 0 0
caption display blocktable-caption table-caption table-caption table-caption table-caption table-caption
box-sizing border-box
padding 1px 3px 5px
text-align center center -konq-center-khtml-center-webkit-center -webkit-center center center
thead display blocktable-header-group table-header-group table-header-group table-header-group table-header-group table-header-group
box-sizing border-box
border-color inherit inherit inherit
vertical-align inheritmiddle middle middle middle middle middle
tfoot display blocktable-footer-group table-footer-group table-footer-group table-footer-group table-footer-group table-footer-group
box-sizing border-box
border-color inherit inherit inherit
vertical-align inheritmiddle middle middle middle middle middle
tbody display blocktable-row-group table-row-group table-row-group table-row-group table-row-group table-row-group
box-sizing border-box
border-color inherit inherit inherit
vertical-align inheritmiddle middle middle middle middle middle
colgroup display blocktable-column-group table-column-group table-column-group table-column-group table-column-group table-column-group
box-sizing border-box
border-color inherit
vertical-align inherit middle
col display blocktable-column table-column table-column table-column table-column table-column
box-sizing border-box
border-color inherit
vertical-align inherit middle
tr display blocktable-row table-row table-row table-row table-row table-row
box-sizing border-box
border-color inherit inherit inherit
vertical-align inherit inherit inherit inherit inherit inherit
th display blocktable-cell table-cell table-cell table-cell table-cell table-cell
padding 1px 1px 1px
border-color inherit
font-weight 700 bold bolderbold bold 700 bolder
vertical-align inherit inherit inherit inherit inherit inherit
text-align center center center
td display blocktable-cell table-cell table-cell table-cell table-cell table-cell
padding 1px 1px 1px
border-color inherit
vertical-align inherit inherit inherit inherit inherit inherit

Browse by property

Rules in default style sheets set display
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
display html block block block block block block
head none none none none none none
title none none none none none
base none none
meta none none none none none
link none none none
style none none none none none
script none none none none none
body block block block block block block
div block block block block block block
p block block block block block block
h1 block block block block block block
h2 block block block block block block
h3 block block block block block block
h4 block block block block block block
h5 block block block block block block
h6 block block block block block block
ul block block block block block block
ol block block block block block block
li blocklist-item list-item list-item list-item list-item list-item
dl block block block block block block
dt block block block block block block
dd block block block block block block
address block block block block block block
hr block block block block block block
pre block block block block block block
blockquote block block block block block block
object block
param none none none
map block
area nonenone !important none none none
table blocktable table table table table table
caption blocktable-caption table-caption table-caption table-caption table-caption table-caption
thead blocktable-header-group table-header-group table-header-group table-header-group table-header-group table-header-group
tfoot blocktable-footer-group table-footer-group table-footer-group table-footer-group table-footer-group table-footer-group
tbody blocktable-row-group table-row-group table-row-group table-row-group table-row-group table-row-group
colgroup blocktable-column-group table-column-group table-column-group table-column-group table-column-group table-column-group
col blocktable-column table-column table-column table-column table-column table-column
tr blocktable-row table-row table-row table-row table-row table-row
th blocktable-cell table-cell table-cell table-cell table-cell table-cell
td blocktable-cell table-cell table-cell table-cell table-cell table-cell
Rules in default style sheets set box-sizing, width, height, or overflow
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
box-sizing hr border-box
table border-box border-box
caption border-box
thead border-box
tfoot border-box
tbody border-box
colgroup border-box
col border-box
tr border-box
width object 300px
height hr 2px 0
object 150px
overflow html auto scroll
body auto scroll
hr hidden
object hidden hidden
img hidden hidden
Rules in default style sheets set Margin
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
margin-top ul 1em 1em 1em 1em 1em 1.33em1.12em
ol 1em 1em 1em 1em 1em 1.33em1.12em
dl 1em 1em 1em 1em 1em 1.33em1.12em
0 0 auto0 0 0 0
0
margin-bottom ul 1em 1em 1em 1em 1em 1.33em1.12em
ol 1em 1em 1em 1em 1em 1.33em1.12em
dl 1em 1em 1em 1em 1em 1.33em1.12em
0 0 auto0 0 0 0
0
margin-left ul 30px 40px
ol 30px 40px
dd 30pt40px 40px 40px 40px 40px 40px
margin body 15px 10px8px 8px 8px 8px 8px 8px
p 1em 0 1em 0 1em 0 1em 0 1em 0 1.33em 01.12em 0
h1 .67em 0 .67em 0 .67em auto.67em 0 .67em 0 .67em 0 .67em 0
h2 .83em 0 .83em 0 .83em auto.83em 0 .83em 0 .83em 0 .83em 0.75em 0
h3 1em 0 1em 0 1em auto1em 0 1em 0 1em 0 1em 0.83em 0
h4 1.33em 0 1.33em 0 1.33em auto1.33em 0 1.33em 0 1em 0 1.33em 01.12em 0
h5 1.67em 0 1.67em 0 1.67em auto1.67em 0 1.67em 0 1.67em 0 1.67em 01.5em 0
h6 2.33em 0 2.33em 0 2.33em auto2.33em 0 2.33em 0 2.33em 0 2.33em 01.67em 0
hr 0.5em auto 0.5em auto 12px 1px12px auto0.5em auto 0.5em auto 10px 00.5em auto
pre 1em 0 1em 0 1em 0 1em 0 1em 0
blockquote auto 30pt1em 40px 1em 40px 1em 40px 1em 40px 1em 10px 1em 40px 1.33em 40px1.12em 40px
Rules in default style sheets set Padding
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
padding-left ul 30pt 40px 40px 40px 40px
ol 30pt 40px 40px 40px 40px
padding address 0 2px
caption 1px 3px 5px
th 1px 1px 1px
td 1px 1px 1px
Rules in default style sheets set Border
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
border-color table #ece9d8 gray gray
thead inherit inherit inherit
tfoot inherit inherit inherit
tbody inherit inherit inherit
colgroup inherit
col inherit
tr inherit inherit inherit
th inherit
td inherit
border-bottom abbr[title] 1px dotted 1px dotted
border hr 1px inset 1px -moz-bg-inset1px inset 1px inset 1px inset 1px inset 1px inset
2px solid
2px solid 2px solid
Rules in default style sheets set border-collapse or border-spacing
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
border-collapse table separate separate separate separate
border-spacing table 2px 2px 2px 2px 2px 2px
Rules in default style sheets set background-color or color
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
background-color html white
body white
color html black
hr gray
a:link blue#06c #00e blue#00e-khtml-link-webkit-link -webkit-link #00c blue
a:visited purple#810081purple #551a8b navy#551a8b-khtml-link-webkit-link -webkit-link purple purple
blue
Rules in default style sheets set Font
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
font-family pre "Courier New" -moz-fixed monospace monospace "MS ゴシック"use-lang-def monospace
code "Courier New" -moz-fixed monospace monospace "MS ゴシック"use-lang-def monospace
samp "Courier New" -moz-fixed monospace monospace "MS ゴシック"use-lang-def monospace
kbd "Courier New" -moz-fixed monospace monospace "MS ゴシック"use-lang-def monospace
font-style address italic italic italic italic italic italic
em italic italic italic italic italic italic
dfn italic italic italic italic
var italic italic italic italic italic italic
cite italic italic italic italic italic italic
abbr italic
i italic italic italic italic italic italic
font-variant abbr small-caps
font-weight h1 700 bold bolderbold bold 700 bolder
h2 700 bold bolderbold bold 700 bolder
h3 700 bold bolderbold bold 700 bolder
h4 700 bold bolderbold bold 700 bolder
h5 700 bold bolderbold bold 700 bolder
h6 700 bold bolderbold bold 700 bolder
strong 700 bolder bolder bolderbold 700 bolder
b 700 bolder bolder bolderbold 700 bolder
th 700 bold bolderbold bold 700 bolder
font-size h1 24pt2em 2em 2em 2em 2em 2em
h2 18pt1.5em 1.5em 1.5em 1.5em 1.5em 1.5em
h3 13.55pt1.17em 1.17em 1.17em 1.17em 1.17em 1.17em
h5 10pt.83em .83em .83em .83em .83em .83em
h6 7.55pt.67em .67em .67em .67em .67em .67em.75em
pre 10pt .81em
code 10pt .81em
samp 10pt .81em
kbd 10pt .81em
sub 10pt.83em smaller smaller smaller .83em
sup 10pt.83em smaller smaller smaller .83em
small 10pt.83em smaller smaller smaller .83em
line-height body 1.33
h5 1.17em
sub normal
sup normal
Rules in default style sheets set vertical-align, text-align, or text-indent
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
vertical-align sub sub sub sub sub sub sub
sup super super super super super super
thead inheritmiddle middle middle middle middle middle
tfoot inheritmiddle middle middle middle middle middle
tbody inheritmiddle middle middle middle middle middle
colgroup inherit middle
col inherit middle
tr inherit inherit inherit inherit inherit inherit
th inherit inherit inherit inherit inherit inherit
td inherit inherit inherit inherit inherit inherit
text-align li match-parent
hr center center
table -konq-auto-khtml-auto
caption center center -konq-center-khtml-center-webkit-center -webkit-center center center
th center center center
text-indent table 0 0
Rules in default style sheets set text-decoration or letter-spacing
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
text-decoration ins underline underline underline underline underline underline
del line-through line-through line-through line-through line-through line-through
underline underline underline underline underline
letter-spacing abbr .1em
Rules in default style sheets set white-space
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
white-space pre pre pre pre pre pre pre
br::before pre-line
Rules in default style sheets set content or quotes
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
content br::before "\A"
q::before open-quote '"' open-quote
q::after close-quote '"' close-quote
quotes q '"' '"' "'" "'"
Rules in default style sheets set List-style
Property Selectors UA's default values Appendix D
IE Firefox Safari Chrome Opera
list-style-type ul disc disc disc disc disc
ol decimal decimal decimal decimal decimal decimal
circle circle circle circle
ul ul ul square square square square
square square square square
list-style-position ul outside
ol outside
Selectors
Properties
inserted by FC2 system