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
-
Can access my site using www
Hello, when I try to access my website using www i would like it to redirect to non www but instead it shows a sal error message.
On-Page Optimization | | Voopoo2 -
Page Title versus H1 title
What's the difference between the Page Title and the H1 title? It seems like both summarize the page. Is it a wasted opportunity to make them the same? Should they be similar but slightly different?
On-Page Optimization | | amybethmegjo1 -
Using a dash or underscores in file names.
Is it better to use a dash or an underscore in file names to improve SEO? EX memory_flash.jpg or memory-flash.jpg Or does it make no difference?
On-Page Optimization | | Robotnik0 -
On-page SEO reviews
Hi everyone 🙂 I was hoping someone could point me in a direction on where I could get my website's on-page SEO a review with recommendations. Title tags, meta description, code, H1s, content and so on... I know you can find most of what I'm asking online, but I would like a professional with a new set of eyes to help out. Thanks in advance for your time in helping!
On-Page Optimization | | AutoGlassRescue0 -
How much the Page Rank matters in SEO?
I have my own blog which is 6 Month old with Page Rank 1, and my fiends has a blog with page rank 2 which is 6 Months Old domain as my. I used to work hard on content and Link Building. Following every webmaster guideline spending 3 to 4 Hours on my blog, but my friends website is just crazy, 3 Website links to it with no PR, no Facebook, no twitter shares and nothing. I want to Know How my friend website has High PR than me, Does Page Rank Really matters in SEO or my friend is performing some black hat magic on his website. Best answer will be appreciated thanks
On-Page Optimization | | Ganesh340 -
Canonical URLs and SEO
After publishing my new wordpress website my on page analysis shows two canonical urls on my homepage. In checking the source code the Yoast SEO plugin states my canoncial url is www.homepage.ca/ This is the only one showing. Having said this I do not add the trailing slash to anything on my url structure. Could this be why the on page analysis tool says there are 2? If so is there any way to resolve this?
On-Page Optimization | | casper4340 -
How many times to use keyword
So if I have my main site, blog and article directory section, can I use keyword in all three places, but obviously different, unique content? And if so, can I link them to make it even more powerful?
On-Page Optimization | | azguy0 -
The Better Title to Use?
Hello Mozers- I am targeting the keywords "liposuction scottsdale", "liposuction phoenix", "liposuction mesa", "liposuction arizona". Out of the following two Titles below, one would you consider the better one? And Why? I am leaning towards the second example. If you have any more ideas that would be great. 1). Tummy Tuck Scottsdale, Phoenix, Mesa, Arizona 2).Tummy Tuck Scottsdale | Tummy Tuck Phoenix, Mesa, Arizona. Thanks!!
On-Page Optimization | | Red_Spot_Interactive0