What is the default margin of h1, h2, h3, h4, h5, h6?

All heading tag have some default margin. Sometime we need to change that, so we have to know the what is the default margin of heading tag.

heading 1 (h1)

margin-left: 0px;
margin-right: 0px; 
margin-top: 8px; 
margin-bottom: 8px;

heading 2 (h2)

margin-left: 0px;
margin-right: 0px; 
margin-top: 10px; 
margin-bottom: 10px;


heading 3 (h3)

margin-left: 0px;
margin-right: 0px; 
margin-top: 12px; 
margin-bottom: 12px;

heading 4 (h4)

margin-left: 0px;
margin-right: 0px; 
margin-top: 16px;
margin-bottom: 16px;

heading 5 (h5)

margin-left: 0px;
margin-right: 0px; 
margin-top: 20px;
margin-bottom: 20px;

heading 6 (h6)

margin-left: 0px;
margin-right: 0px; 
margin-top: 28px;
margin-bottom: 28px;
VN:F [1.9.22_1171]
Rating: 9.7/10 (19 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 3 votes)
What is the default margin of h1, h2, h3, h4, h5, h6?, 9.7 out of 10 based on 19 ratings

This entry was posted in Advanced HTML - CSS. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>