What are the default margins for the html heading tags (, , , etc.)?

Your Question:

It varies between browsers. Check each browser’s specific default stylesheets to tell.

For Google Chrome for example, it’s 0.67em.


A Better Solution?

Do know that if you wish to aim for x-browser consistency, you’ll have to use a CSS Reset.

The most common one being:

* { padding: 0; margin: 0; }

Although other (and probably better) exist.

Leave a Comment