# code not detected
-
Hi guys, my H1 code is like but Yoast SEO and Google Page Speed keeps saying that i do not have a H1 tag in my website, Is my code wrong?
Keyword | Keyword2
-
You have a inside the
but not thethat it is closing. That is just to start. The rest of that code needs cleanup and is mostly unnecessary--you wouldn't need two spans; the letter-spacing has no value, etc.
What is best is to properly define the h1 in the CSS and then use
Your Page Title
.
If you need to modify the h1 (maybe it is defined for a group of pages and on this particular page you want something a little different), do it as simply as possible. (The span attributes in your example probably would not do anything, assuming a white background, though that depends on how the class google-mixed, is defined...)
-
Can you provide the URL?
Grobro is most likely right. If you have an opening
tag before your
tag, the closing
should be after your closing .
-
I am pretty sure it has to with the
tag, try the W3C Tool: http://validator.w3.org/#validate_by_input
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 Google read this code?
I'm working on some basic on-page SEO content for a website within my company and I need some guidance as far as 1. whether Google can read the small amount of existing text (not optimized) and if it isn't spiderable, then 2. what code should be there instead. Here is the site: https://www.le-velgear.com/store/catalog The text I'm referring to is toward the bottom of the page (isn't it always?) and says this: Designed for a Thriving Lifestyle The Le-Vel Gear store is an extension of the LV Life, the Thrive product line, and the world's largest health and wellness Movement, which you helped create. Living a life you deserve includes looking good while showing the world your pride in being a Thriver...Check out all the new and incredible gear and tools and take your Thriving lifestyle to the next level!!! When I "View Source," I cannot see the text, however, the text is highlight-able with my cursor and I can see it when I "Inspect Element" in a container that says Thanks in advance for any help!
On-Page Optimization | | lizzyr0 -
Site is too slow? Seeing a new code.
Site is too slow. I am seeing this new code more than 1000 times in my home page- What should I do now? My site- http://a1stlucie.com/
On-Page Optimization | | Beachflower0 -
Does <hn>placement matter in the code?</hn>
Does it matter if SEO relevant HTML (such as the placement of an H1) is on line 100 versus 2,000? (Editing to provide more clarity)
On-Page Optimization | | EricSchell
My question is not related to where the H1 is visually on the page (above the fold or below, etc.) its purely a question as to does the line number in the rendered HTML file impact the power of the H1 on the page. As someone with a lot of SEO experience myself, I don't think when a bot is reading the page HTML it cares where the H1 is - just that it exists (and might have a weight above/below fold).0 -
Sudden drop in ranking for important keyword? No penalty / other issues detected
Hi For our site we previously ranked well for the term "botswana safari holidays" on the page: http://www.naturalworldsafaris.com/destinations/africa-and-the-indian-ocean/botswana.aspx We've suddenly seen a dramatic drop for this term, currently ranked #43 on Google UK. There are no penalty notices in Webmaster tools and the only edits to the page recently have been to include the term "Botswana safari holidays" in the page title and the on-page h2 (previously Botswana safaris and holidays). Any suggestions why we have seen a large decrease for this term? We expect to see some fluctuation but this one seems a bit dramatic. We've not lost any backlinks to the page that we know of. Thanks for the help.
On-Page Optimization | | KateWaite0 -
Google Map Marker not showing up when using HTML Embed Code
Hi community, For several clients, when embedding the Google Maps, the Marker DOES NOT appear. I am copying straight from Google Maps, it appears fine in Google Maps. Is there HTML I can add or is there something wrong with the map marker to begin with? These are verified listings. Help! Thank you! Priscilla
On-Page Optimization | | FullMedia900 -
Meta Title in Google does not match the HTML meta title I have coded in a site
I have a client site that is pulling a meta title that is not in his code. I am using Yoast for the titles and descriptions on this site. Not 100% sure why Google is not listing the title we have in place. Could the code be pulling from somewhere else? Is there a fix for this?
On-Page Optimization | | Bryan_Loconto0 -
How does Google Detect which keywords my website should show up for in the SE?
When I checked my Google Webmaster Tools I found that my website is showing up for keywords that I didn't optimize for ... for example I optimize my website for "funny pictures with captions", and the website is showing up for "funny images with captions". I know that this is good, but the keyword is dancing all around, sometimes I search for "funny pictures with captions" and I show up in the 7th page, and some time I don't show up. and the same goes for the other keyword. of course I am optimizing for more than two keywords but the results is not consistent. my question is how does Google decide which keywords you website should show up for? Is it the on-page keywords?, or is it the off-page anchor text keywords? Thank you in advance ...
On-Page Optimization | | FarrisFahad
FarrisFahad0 -
Does Code Order Matter?
I read/was told that it was a good idea to order your HTML to show the most important content first. So, on many sites I had put my global navigation div, for instance, below my main content div. Does this still apply? And does wise use of HTML 5 mean this is no longer necessary (eg use of "nav" section tag to indicate this section is about navigation). In the same vein, how does Google know that my sidebar nav is my sidebar nav (which your site seems to say is probably given less weight than top nav), and how does it know my topnav is my top nav? Maybe a daft question, but when someone asked me yesterday I realised I didn't know! (Phew - at last I have asked a short question!).
On-Page Optimization | | PeterMurray0