Mobile app version of vmapp.org
Login or Join
Miguel251

: Having tag inside the is advisable or not? I have read that <h2> tags are important for seo and SEO expert prefer <strong> tags over <b> tags. But what if i want to use

@Miguel251

Posted in: #Seo

I have read that <h2> tags are important for seo and SEO expert prefer <strong> tags over <b> tags. But what if i want to use both (h2 and strong) together ?

So suppose if i want to use tags with tags,

Ex. 1

<h2><strong> my title text </strong></h2>


Ex.2

<strong> <h2> my title text</h2> </strong>


Which one is better in terms of seo or both are same?

UPDATE: <h2> tag inside <strong > does not produce the Strong effect. So i will have to use the Ex.2 to make the words STRONG else it will be just a h2 tagged text.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Miguel251

3 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

As others have noted, you're better off handling the styling of tags through stylesheets.

Here is a quick example:

<!DOCTYPE HTML>
<html>
<head>
<style>
h2 { font-weight: bold; }
</style>
</head>
<body>
<h2>my title text</h2>
</body>
</html>


This is considered more correct and will confer as much SEO value as wrapping the text with tags.

10% popularity Vote Up Vote Down


 

@Murphy175

It's not a problem SEO-wise to do this. There are many ranking sites that have 'ugly' HTML code. From a HTML coding perspective, you should use CSS to indicate that the text in a H2 tag with a particular class or id will be bolded in its entirety. It would be OK to use if you wanted to have part of the H2 text bolded and part not. This would be rather unusual but acceptable and, once again, would not impact SEO at all.

It's very easy to get bogged down in trivia like this when doing SEO. Try to avoid this and instead concentrate on getting strong, legit, links to your site and developing content that people naturally link to on their own.

10% popularity Vote Up Vote Down


 

@Kevin317

It's not advisable because it is unecessary. <h2> has semantic meaning as a page subheading and it is given the appropriate weight in ranking alogirthms (basically <strong> is implied). Also, by default their contents are displayed in bold by the major web browsers so using the <strong> tag within them shouldn't be necessary. So by placing a <strong> tag inside of a <h2> tag you are probably going to raise a red flag with the major search engines.

(Also, don't do silly things like this just for search engines. All you're doing is wasting your time. Write proper code and publish good content.)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme