Hello I wanted to ask you if h1, h2, ... html tags can be used in terms of SEO like this: <h3> <div class="classForH3HeadersInPageY"> example text </div> </h3> My question is: I have always seen h1, h2,... tags used with text right inside of those tags. However, I do not know if placing the text inside of internal divs like the example above instead of directly inside of the h3 tag is good for SEO. Any suggestion? I just thought that this approach I mentioned above might be no so good as placing the example text like this: <h3> example text </h3> However, sometimes if you have several pages on a site, you need to change the format of your h3 headers depending on the page and to do so I just came with the idea that placing div tags from different classes inside of the h3 would let me achieve what I said. Therefore, the class used for each div would depend on the page in which this header h3 is being used. But I wonder, does this solution has any inconvenient in terms of SEO? Thanks
There is no difference between the two tags at an seo standpoint. In fact I have been involved in search engine optimization for over 4yr now and have tested this many times to conclude that it doesn't matter as long as you have h1 h2 & h3 tags on your page you should be fine!
I would have to argue that there is a difference from an SEO standpoint, although, it is quite minimal (you wouldn't see a difference except in very limited circumstances). Google searches through code and places percents on whatever possible to determine a sites ranking. I would also have to ask, why would you be doing this in the first place? There is no point for a div there. If you want to set a class to words inside of an h3 do this: <h3 class="classForH3HeadersInPageY">example text</h3>
Why not just stick to industry standard? Example HTML <div class="container"> <h3>Title</h3> </div> CSS File .container { border: solid 1px #00000; } .container h3 { font-size: 16px; }
Thanks for all your suggestions because they are really useful indeed and I had not thought about those options that you suggest until you mentioned them.