html - HTML5 Header Tag Default Font-size -


initially had seperate h1 & h2 tags styled same css rules below eachother make heading. had both of fonts set 15px:

here html:

<!doctype html> <html>     <head>     <meta charset="utf-8">     <title>coming soon..</title>     <style>          h1 {             font-size: 15px;          }           h2 {             font-size: 15px;          }     </style>  <body>        <h1> header.. </h1>        <h2> smaller header </h2> </body> </html> 

then used header tag group h1 & h2 , styled instead of h1 & h2. font-sizes increase dramatically despite assigning same font-size in pixels:

here html:

<!doctype html> <html>     <head>     <meta charset="utf-8">     <title>coming soon..</title>     <style>          header{                    font-size: 15px;           }     </style>  <body>     <header>        <h1> header.. </h1>        <h2> smaller header </h2>     </header> </body> </html> 

i can override these issues including rules h1, , h2 header want know why header font-size: 15px bigger h1 font-size: 15px?

it's not header styling not applying h1 & h2 - tried various pixel values header font-size , changes font size seems amplified compared h1/h2. twice default value.

i've read can find on header tag , can't find answer!


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -