HTML各个标签的默认样式
HTML5学堂:网页的结构是由许许多多的标签组成,标签可以分为块、行、第三类,它们在浏览器的默认样式是什么呢?本文给大家讲解的是HTML的各个标签默认样式有哪些。
标签存在着一些默认样式,以下主要给大家列出了他们默认的样式,供大家学习参考。
标签:html, body, article, aside, footer, header, hgroup, main, nav, section, address, h1, h2, h3, h4, h5, h6, p, hr, pre, ol, ul, dl, dt, dd, figure, figcaption, div, form, fieldset, legend, option, details, summary, menu
display: block
标签:noscript, a, em, strong, small, var, b, u, br, ins, del, img, audio, video, source, canvas, label
display: inline
标签:head, title, link, script, meta, style
display: none
标签:table
display: table
标签:caption
display: table-caption, text-align: center
标签:thead
display: table-header-group
标签:tbody
display: table-row-group
标签:tfoot
display: table-footer-group
标签:tr
display: table-row
标签:td, th
display: table-cell
标签:li
display: list-item
标签:input, button, select, textarea
display: inline-block
以下是给大家总结出来的标签默认样式(标签的顺序是按照字母顺序排列)
相关文章推荐
CSS选择器优先级
reset 样式重置
欢迎沟通交流~HTML5学堂