Heading tags increase font size

I am trying to integrate heading tags within my website. But whenever I use h2 tags, the font size increases. Is the font size supposed to increase when using h2 heading tags? Is there anyway that I could have the fonts remain the same size while using h2 tags? Thanks.
 

Lizyd Design

New Member
Lol seriously? Yes the font size does generally increase when using heading tags. You can easily change this in your stylesheet.
h2 {
font-size: 10px;
}
You get the idea.
 

ronaldroe

Super Moderator
Staff member
Browser defaults do increase font size for header tags. They are also block level and bold.
 

chrishirst

Well-Known Member
Staff member
I am trying to integrate heading tags within my website. But whenever I use h2 tags, the font size increases. Is the font size supposed to increase when using h2 heading tags? Is there anyway that I could have the fonts remain the same size while using h2 tags? Thanks.

Why????

Heading elements are there for creating a STRUCTURE to the document NOT for some silly "SEO" reason.
 

clickpencil

New Member
Lizyd Design is correct.
You can use
h2 {
font-size: 10px;
}
and when you will use h2 tag it's font size would be 10px
or
you can try below

.myfontClass {
font-size: 10px;
}

and call this class in h2 tag like below

<h2 class="myfontClass">

This will help you change font size in h2 where ever you want.
 
Top