- 
                Different behavior of heading tag with sectionalmost 10 years ago 
- 
          
          about 9 years ago This is an browser custom styles) Eg. h1 outside of section or aside have font-size: 2em, but in section, article, aside, nav have font-size: 1.5em See in devtools. :-webkit-any(article,aside,nav,section) h1 { font-size: 1.5em; -webkit-margin-before: 0.83em; -webkit-margin-after: 0.83em; } Outside of article, section, nav, aside h1 have this styles h1 { display: block; font-size: 2em; -webkit-margin-before: 0.67em; -webkit-margin-after: 0.67em; -webkit-margin-start: 0px; -webkit-margin-end: 0px; font-weight: bold; } If you don't want such surprises - reset browser styles with normalize.css 
- 
          
- 
          
          over 9 years ago define CSS for section and for aside, for example: section h1 { font-family: Helvetica; font-size: 20 px; } 
- 
          
 
                      
                      
                      
    
    

2 Answer(s)