Bad for SEO? (span tag within header tag)

  • Shadows
  • Beginner
  • Beginner
  • Shadows
  • Posts: 64

Post 3+ Months Ago

Hi,

I have a question and since I don't know the answer it bothers me. I understand the importance of SEO in terms of ranking etc.

My question is while header tags (h1 ... h6) are important and should be used to illustrate important key words and terms, does inserting a <span> tag inside that header tag affect its effectiveness?

for example

Code: [ Select ]
<h1>
<span class="boardit">Portfolio</span>
</h1>
  1. <h1>
  2. <span class="boardit">Portfolio</span>
  3. </h1>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Fabinator
  • Proficient
  • Proficient
  • Fabinator
  • Posts: 467

Post 3+ Months Ago

I'm don't think it effects your SEO... but I'm not 100%

But why do you have the extra span there?
You could also give a class name to the h1-element:
Code: [ Select ]
<h1 class="boardit">Portfolio</h1>
  • Shadows
  • Beginner
  • Beginner
  • Shadows
  • Posts: 64

Post 3+ Months Ago

I never considered applying a class to a header, the reason I include a span inside a header tag is so I can apply an underline to the text where as should the header have a "border-bottom" applied, it repeats the bottom border across the full width.
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

What about:

h1 {text-decoration: underline}
  • karmadir
  • Graduate
  • Graduate
  • karmadir
  • Posts: 103
  • Loc: India

Post 3+ Months Ago

No It do not give any problem.

If your heading color is as same as background color,then it can be a problem and is considered black hat seo.
  • saxena
  • Beginner
  • Beginner
  • saxena
  • Posts: 38
  • Loc: India

Post 3+ Months Ago

H1 is the most important, and widely exploited header tag. Several spammy sites have exploited H1 tag to such a great extent, that google becomes cautious, when it encounters one.

If you are using H1 make sure not to stuff to many keywords, and you should abstain from using any <SPAN>, which could get mistaken as <SPAM> ;).

Try using external style sheet to control H1 tag, instead of using a <SPAN> or any other within <h1> tag

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 1 guest
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.