Cantags within links affect Google's perception of them?
-
Hi, All!
This might be really obvious, but I have little coding experience, so when in doubt - ask...
One of our client site's has navigation that looks (in part) like this:
<a <span="">href</a><a <span="">="http://www.mysite.com/section1"></a>
<a <span="">src="images/arrow6.gif" width="13" height="7" alt="Section 1">Section 1</a><a <span=""></a>
WC3 told us the
tags invalidate, and while I ignored most of their comments because I didn't think it would impact on what search engines saw, because thesetags are right in the links, it raised a question.
Anyone know if this is for sure a problem/not a problem?
Thanks in advance!
Aviva B
-
Thanks, Ryan. Good ideas, and we'll see what "the authorities" choose to do.
-
If they would have to pay a significant amount of money to have it redone, though, would it be worth it in this kind of case? What would the odds be?
Without having any information about the site, it's not possible to offer any credible details, odds or measurements of worth. If you are asking for a guess, I would say it is very unlikely for the div tags to cause any SEO problems, but that's the problem with invalid code, you don't know how it will be handled.
The bigger concern I have is if that line of code was coded so poorly, there are likely other coding issues with the site.
May I suggest asking a couple developers for an estimate on how much it would adjust the site's code so it validates?
-
Thanks, Ryan. Point well taken. I think I may copy and paste this for the client in question. If they would have to pay a significant amount of money to have it redone, though, would it be worth it in this kind of case? What would the odds be?
Aviva
-
Thanks, Kyle. We're not the design/webmaster team, so while it might not have been a good idea to do that in the first place, our job here is just to tell our client what MUST change for SEO and what doesn't need to change, even though it might not have been ideal. The challenges of not having unlimited budget...
Thanks,
Aviva
-
Simply from a front-end development perspective, why would you place a
inside of an <a>? If you are trying to force a block element style, why not simply apply it through the CSS sheet to the</a> <a>tag?
If you supply a URL i can give more specific coding advice
Thanks - Kyle</a>
-
The problem with using invalid code is every browser may handle it differently. Even if your current browser handles it fine today, the next time it updates the results may change.
Code validation is representatives from all the major browsers getting together and agreeing on coding rules. The biggest problem with invalid code is people thinking their site is fine but then later finding out (or worse not finding out) their site does not appear correctly in various browsers.
You have ie6, ie7, ie8, ie9, ie10, Chrome, FF, Opera, Safari and other browsers on the market. You have a variety of phones, ipads and other devices. It is more important then ever to use valid code. If your page doesn't fully validate, it should still be almost valid and the couple errors which remain have been thoroughly researched and you consciously choose to not validate on those particular items. An example would be if you are using HTML 5 and the validation tool has not fully been updated for all the latest changes.
With the above noted, I am not aware of any problem with your code. The challenge is since it is not valid, you cannot predict how it will be handled by Google. Even if it is handled correctly today, a change can be made at any time which can impact you.
-
Thanks, Andy. You've seen sites that have used the tags the same way?
-
To be honest, I can't see, from an SEO perspective, how Google would view these in a negative way. I can only tell you that from all of the sites that I have seen, I have never seen this as a problem.
Someone else might come up with a definitive answer, but I would say that there is nothing wrong with
tags for SEO.
Cheers,
Andy
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
-
My Home Page meta title on Google isn't what it should be
Hey guys My website is http://www.oxfordmeetsfifth.com According to SEOcentro, my website should appear to Google as Fashion Tips for Women | Oxford Meets Fifth. I have used the Yoast plugin and force rewrote titles to ensure that is the home page meta title. It also appears correctly in browser. Could anyone advise why this is the case? Thanks in advance!
Technical SEO | | OxfordMeetsFifth0 -
Spam link? Links from linguee
Hi Everyone My site received a notification of unnatural links in Webmaster Tools and the site has had a penalty applied. I can see there are a lot of links from a site : linguee.com .de. nl. ect ..more than 30k of them! I am not sure where did those links come from! The suddenly appeared over the weekend. Does anyone has similar experience before and any suggestion? Thanks Ricky
Technical SEO | | SEO-SMB0 -
Is new created page's pagerank 1 ?
Hey I just want to know,
Technical SEO | | atakala
If I create a web page, is the pagerank of the page would be 1?1 -
How do i show my link xls file to google?
i have removed lots of links and contacted lots of webmaster to clean up my link profile. I have a large xls file to send to google for them to see that we have done a lot to clean up the bad links. How would i show this file to google? is there a place where I can post it? or email ? thank you nick
Technical SEO | | orion680 -
Toggle Menu's and Collapsible Nav Structure Good For SEO?
Does anyone have any insights on toggle menu's or collapsible navigation structure and if its good/bad for Search?
Technical SEO | | Your_Workshop0 -
Removing a site from Google's index
We have a site we'd like to have pulled from Google's index. Back in late June, we disallowed robot access to the site through the robots.txt file and added a robots meta tag with "no index,no follow" commands. The expectation was that Google would eventually crawl the site and remove it from the index in response to those tags. The problem is that Google hasn't come back to crawl the site since late May. Is there a way to speed up this process and communicate to Google that we want the entire site out of the index, or do we just have to wait until it's eventually crawled again?
Technical SEO | | issuebasedmedia0 -
If two links from one page link to another, how can I get the second link's anchor text to count?
I am working on an e-commerce site and on the category pages each of the product listings link to the product page twice. The first is an image link and then the second is the product name. I want to get the anchor text of the second link to count. If I no-follow the image link will that help at all? If not is there a way to do this?
Technical SEO | | JordanJudson0 -
Why won't google rank my homepage
I have a site that ranks high on the first page for it's main keyword at both Bing and Yahoo but horribly at Google. It's a domain I recently acquired and am in the process of optimizing. My goal is to improve the relevancy for the site in Google so that the site shows up better for it's main keyword. With that said I've been working on building valuable links to the page and I would like some opinions on why the homepage is not ranking for the main keyword. Instead I have a junky content page that is ranking for the term. So in the event that you have a exact match domain showing up very high in Bing and Yahoo but not in Google for the homepage, what factors would you look at? Add in the complexity that a page other than the homepage is making grounds on the exact match keyword having moved up from "not in the top 100" to the 50's, what's my best solution to ranking the homepage? The site is optimized well and most inbound links predominantly point to the homepage.
Technical SEO | | DotCar0