Search code examples
csstagsstylinghtml-heading

How to replicate the styling of html heading tags


Can anyone tell me how to replicate the styling of a <h3> tag using CSS?


Solution

  • From: "Appendix D. Default style sheet for HTML 4" http://www.w3.org/TR/CSS2/sample.html

    display: block;
    font-size: 1.17em;
    margin: .83em 0;
    font-weight: bolder;
    

    Of course, Kendrick is right in saying that browsers may use different formatting than suggested by the W3C.