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
-
Homepage SEO optimization
Hello, I’m almost ready to lunch my new website https://thetravelhoop.com , I just need to create the content of the product page and put all the images. I would like to know what you think in terms of SEO of the home page (is the content that I want to rank the most). My doubt is that since it is a landing page, there is not a lot of text but mostly <h>. It’s not a styling decision of course (I know is bad practice) but mostly because they are supposed to be title/headings.</h> Do you think I’m doing something wrong, or do you have any suggestions? Thank you, Daniele
On-Page Optimization | | danielecelsa0 -
SEO for e-commerce websites
Hi, I'm a novice building a website (on wordpress with the plug-in Woocommerce) and would like some advice on how to optimise my online store for SEO. Does 'traditional' link building apply to e-commerce What else should I consider Should I write a blog/vlog/ Thanks, Lindsay
On-Page Optimization | | lindsayhopkins0 -
301 Redirect and SEO Rankings
I recently restructured my webpage URL's (about 300 ~ 75% of my total website) to make the URL paths more SEO friendly. Within a few hours of restructuring the pages, I did a 301 redirect to my old URL's and pointed them to the new pages. I have seen ~ 50% drop in organic traffic. I started the restructuring exercise 14 days ago and finished it a few hours back. I have 3 questions: How long will it take for me to recover my old traffic. Will I recover most of it or some of it? Due to a glitch in the specified path, some old URL's were wrongly redirected (this happened with 9 pages to be exact). I will explain exactly what happened: www.redirct.com/superseonow1 ---- redirected to ---- www.redirectnow.com/seonow1 **/superseonow was 301 redirected to /seonow. After 3 days I realize that /superseonow1 was actually /supernow1. The same thing happened to 9 pages - /superseonow2, /superseonow3 ..... ** I have removed all the wrong redirects. When I tried to enter the correct (old) paths now and 301 redirect them to the new paths, the page was not found using the old paths. Should I redirect the old paths to the New ones even now? 3. Finally, in how much time after you change the page structure should you use the 301 redirect. Since I had two different teams working on this job, there could have been up to a 24 hour gap between the redirection.
On-Page Optimization | | rajatsharma0 -
Best Way to Use Date in Title
Hi, I do most of the current copy for our blog which you can find here http://appointedd.com/blog/ I believe having a regular blog structure with a mix of irregular ad hoc posts to go in around these. So, for this blog, I write an article on "Beauty Industry News" every week. Now, I don't want to use the same title for each post, so I've peen butting in the date after each one i.e. "Beauty Industry News - 24/04/13". Is this best practice or is there a better way of naming regular posts? Thanks in advance!
On-Page Optimization | | LeahHutcheon0 -
SEO for Image only posts
Let's say I have a post where I show 25 different wood textures. I start the post with a small paragraph and then I show several images of wood textures linked to an internal or external page. Since I don't use a text link, then I have to rely on alt tags. It would be very difficult to assign a different alt tag to so many similar images, and I guess there would be a risk of keyword stuffing (walnut wood, oak wood, etc). On the other side, if I assign the same tag to all images, then that clearly is keyword stuffing (alt=wood textures). This is just an example, but it applies to most of my posts. What do you think I should do with the alt tags? Thanks!
On-Page Optimization | | enriquef0 -
Responsive web design and SEO
Hi guys, Do any of you know about responsive web design? In short it's a method that ensures that your website adopts to the resolution on the users screen. The point is that you don't have to make a site for each format, it's all there in your overall design. So, to the question: Does, to your knowledge, an integration of responsive web design harm your SEO? I tried to search for "responsive we design + SEO" but I really didn't get any useful information. Thanks a lot - all comments are very much appreciated.
On-Page Optimization | | MPO2 -
How can I stop google reading a certain section of text with my H1 tag?
Hey Mozzers, I'm wondering if anybody knows of a way that I can stop google reading a certain part of text within my H1 texts? My issue is that I have individual office pages on my site, but many offices are based in the same city; such as 'London'. I want to keep London within the H1 tag for user experience but I do not want it to be picked up by the search engines and start a canonical issue. I've seen some people say to use document.write or use an image. Does anybody know of a correct way of doing this? Many Thanks.
On-Page Optimization | | Lakeside0 -
Can Other Websites You Own Affect Your Rankings?
Let's say you own three websites. One is low quality and Google frowns upon it, another is moderate and a third has stellar unique content. Would Google penalize the third website because you own the first website? On a related note - If you were banned from Google AdWords, would registering a site in your name potentially harm your rankings?
On-Page Optimization | | DerekP0