Reputation: 1158
Will using <span class="heading">
instead of <h>
tags affect Google search engine optimization?
I am building a website and I styled the headings and subheadings with <span>
. Then I realized will Google find them without the <h1>
tag?
Will span work or should i use ?
<span class="main-heading">Text here</span>.
Or
<h1>Heading</h1>.
Upvotes: 1
Views: 4993
Reputation: 935
From the aspect of design & development there is no matter what tag you have used.
But, from the aspect of SEO there is really a big difference between <span>
and <h>
tags.
Generally, <h>
tags are used for SEO purpose. Search engines consider <h>
tags more important than <span>
. The Search engine indexed your web page text as a title if it enclosed between <h>
tag.
For More Detail please visit THIS SITE.
Also, if you want to use <h>
tags without major changes than you can do following:
HTML :
<h1>
<span class="main-heading"></span>
</h1>
<h2>
<span class="sub-heading"></span>
</h2>
CSS :
h1, .main-heading { font-size:30px; }
h2, .sub-heading { font-size:26px; }
Upvotes: 4