SEO can id and class be used in H1?
-
Can ID and class be used in my H1 tag. I realize best case would be to change it, but it's going to require a change order from the ecommerce company to fix their sloppy code. Will this hurt seo?
Example:
-
Absolutely agree with Dana here. Stylizing H1 elements is very common, both classes and ids can be used to achieve this.
-
Hi Keith,
This it totally fine. Using class within the
is very common. The ID isn't a problem. Googlebot still understands that this is an
. I think as time goes forward, some of these technical SEO elements will become less important. Search engines are going to understand, particularly as HTML5 becomes more widely adopted, that <h>tags are used as much to define stylistic elements as structural elements. Hope that helps!
Dana</h>
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
OnPage SEO
I am about to start my website http://i-love-skiing.com/. I would like to know what OnPage ranking factors should I consider while launching or building my website. I want to rank higher on search results.
On-Page Optimization | | TheresaWoods0 -
SEO for Online Auto Parts Store
I'm currently doing an audit for an online auto parts store and am having a hard time wrapping my head around their duplicate content issue. The current set up is this: The catalogue starts with the user selecting their year of vehicle They then choose their brand (so each of the year pages have listed every single brand of car, creating duplicate content) They then choose their model of car and then the engine And then this takes them to a page listing every type/category of product they sell (so each and every model type/engine size has the exact same content!) This is amounting to literally thousands of pages being seen as duplicates It's a giant mess. Is using rel=canonical the best thing to do? I'm having a hard time seeing a logical way of structuring the site to avoid this issue. Anyone have any ideas?
On-Page Optimization | | ATMOSMarketing560 -
H1 tag mandatory?
Hi there! Is a mandatory to fullfill the H1 tag in order to improve SEO? I mean I'm in the case where the keyword selected is appropiate to optimize the page but not appropiate to be in H1 tag 'cause it probably "doesn't sound good" to the user. Is it enought to be present in the url, title and description?Any suggestion? Thanks in advanced.
On-Page Optimization | | juanmiguelcr0 -
A good SEO praxis?
Hi all, having a worpress site with 10 DIFFERENT pages (each with its own different content) and consequently 10 DIFFERENT keywords to optimize......Can somehow Google penalize me for having such a number of different keyowrds? I guess sometimes there no way to avoid it. It depends on the content of each page. You'll need a keyword to optimize them (if you consider they are relevant enough). Thanks.
On-Page Optimization | | juanmiguelcr0 -
Do Blog Comments On Your Site Help SEO?
There is a lot of debate as whether or not having comments on your blog is helpful from an SEO perspective. Proponents believe that more comments (1) creates more content, which search engines love, (2) creates more relevant keywords that can be searched, and (3) helps with "freshness" of the site/content leading to greater site authority. Others like Joost de Valk believe that comments can actually hurt SEO because keyword density cannot be controlled. He argues that his top SEO content are pages not posts for this very reason. What is your opinion?
On-Page Optimization | | marcperry0 -
Transpose H1 and H2 Headline
Hi SeoZ 🙂 Quick question, is it a problem if the H2 Element comes after the H1 Element? Also does Google recoginise it if i make the h2 font bigger than the h1? For example: HTML: Awesome Headline bla bla bla Keyword1 Keyword 2 Css:
On-Page Optimization | | krseo
h2 {font-size: 32px;}
h1 {font-size: 28px;} Thank you, Alex0 -
SEO Plugins for WordPress
Hi, Mozzers- I'm re-evaluating my SEO WordPress Plugins. What are your favorites and why? Are there others that you avoid and why? Thanks!
On-Page Optimization | | lhc672 -
SEO Titles and Keyword Density
Hey guys, I'm doing some on page SEO for a few clients and I've always wondered about this question. I have read tons of articles on the perfect <title>tag, but they don't often mention this.</p> <p>So my titles, like most others follow this format:</p> <p>Keyword 1 | Keyword 2 - Company</p> <p>So say for example I am trying to rank for 'life insurance' and 'life insurance quote' for 'axa sunlife'.</p> <p>It's my assumption that the title should be:</p> <p>Life Insurance Quote - Axa Sunlife</p> <p>rather than:</p> <p>Life Insurance | Life Insurance Quote - Axa Sunlife</p> <p>Am I right in thinking that putting it twice has no added value, and could in fact have an adverse effect?</p> <p>Thanks,</p> <p>Lewis.</p> <p> </p></title>
On-Page Optimization | | SEOMyGod0