Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
How much impact does bad html coding really have on SEO?
- 
					
					
					
					
 My client has a site that we are trying to optimise. However the code is really pretty bad. There are 205 errors showing when W3C validating. The >title>, , <keywords> tags are appearing twice. There is truly excessive javascript. And everything has been put in tables.</keywords> How much do you think this is really impacting the opportunity to rank? There has been quite a bit of discussion recently along the lines of is on-page SEO impacting anymore. I just want to be sure before I recommend a whole heap of code changes that could cost her a lot - especially if the impact/return could be miniscule. Should it all be cleaned up? Many thanks 
- 
					
					
					
					
 Hi Chammy, I inherited a site that reported 3,184 crawl errors in MOZ and a significant number of them (nearly 600) were duplicate titles and content. I have that down to under 1,000 total errors and only 86 critical errors. I have seen my ranking grow pretty substantially and in one week had 6 pages increase over 20 positions in rank. I can share the MOZ Rank Report if you would like to see it. So yes, it does have an impact. 
- 
					
					
					
					
 I'm sorry, I don't have any evidence from the user experience point of view,. although I would also be interested to see the results of any studies. I will say that from a site management/maintenance point of view it makes sense to try and keep the code as clean as possible. I've been involved in project were a considerable chunk of the cost was incurred due to the amount of time and effort that was required to unravel the mess even before any new changes were made! 
- 
					
					
					
					
 Thanks very much everyone - very helpful. Good point re page speed - the pages are certainly slow to load so this could well be due to the huge amount of js and bad code. And yes, think the duplicate tags should be sorted - this shouldn't be difficult. Has anyone got any tangible results that they've seen as a result of cleaning up js and code? 
- 
					
					
					
					
 If you've got things like duplicate title and meta-description's going on then I'd certainly take a look at fixing those. Being able to manage these two tags is vital to managing the way your pages will appear in the search results. (And your title tag is an important ranking factor). Normally, if your page doesn't validate then it's not a major problem and search engines won't penalise you for it. If however, your page is so badly crafted that the html errors, and general page structure makes it difficult for the search engines (and humans) to read your page then you're going to suffer. The key is to make sure that your site/page content is accessible. How accessible is your page to someone with disabilities, using a screen reader etc. You've got to make sure that the search engines can understand what your page is about or your page won't be seen as a relevant page for any search terms... How bad is it? How does google render the page in it's instant previews (you can check this is Google Webmaster tools) 
- 
					
					
					
					
 I personally don't worry about bad code unless it slows down my page or can possibly make things confusing for search engines or readers. If the title and meta are appearing twice this could be confusing for search engines, so I would change this. But, if you've got things like an unclosed here and there I personally don't think that's going to be much of a factor. 
- 
					
					
					
					
 Invalid code has a small effect on ranking. However, if the invalid code causes usability issues such as load time and or causes a high bounce rate then it can lower your rankings and of course cut back on conversions. Some of it is a higher priority than others. I would say defo remove the meta keywords. Combine JS pages. The tables while out of date is not a big issue. If you have the time and resources then yes it should be cleaned up. If not then clean up major problems 
Browse Questions
Explore more categories
- 
		
		Moz ToolsChat with the community about the Moz tools. 
- 
		
		SEO TacticsDiscuss the SEO process with fellow marketers 
- 
		
		CommunityDiscuss industry events, jobs, and news! 
- 
		
		Digital MarketingChat about tactics outside of SEO 
- 
		
		Research & TrendsDive into research and trends in the search industry. 
- 
		
		SupportConnect on product support and feature requests. 
Related Questions
- 
		
		
		
		
		
		Coming soon SEO
 Hi, I was wondering what is the best practice to redirect all the links juice by redirecting all the pages of your website to a coming soon page. The coming soon page will point to the domain.com, not to a subfolder. Should I move the entire website to a subfolder and redirect this folder to the coming soon page? Thanks Technical SEO | | bigrat950
- 
		
		
		
		
		
		Are links in menus to external sites bad for SEO?
 We're building a blog on a subdomain of the main site. The main site is on Shopify and the blog will be on wordpress. I'd like to keep the user experience as simple as possible so I'd like to make the blog look exactly like the main Shopify site. This means having a menu in the blog that duplicates the Shopify menu. So is it bad for SEO to have someone click on the 'about us' button in the blog subdomain (blog.mainsite.com) which takes you to the 'about us page' on the main shopify website (mainsite.com)? Technical SEO | | acs1110
- 
		
		
		
		
		
		How to SEO a Website Built off Godaddy?
 I have a client whose website is built off Godaddy services. I know Godaddy is not the right choice for building a website, but what's done is done. The client has already bought the Godaddy services and there's no way I can tell him to go rebuild his website before we could optimize it for SEO. I'm already facing a lot of challenges while optimizing on-page elements. When I wanted to verify the ownership for Google Analytics and Webmaster Tool via his Godaddy account. the process failed many times. it looks like Godaddy is using some kind of caching not allowing us to modify the codes. For example, I'd applied the site verification codes for Webmasters Tool 48 hours ago, and the metatag for google site verification is not yet updated in the frontend. It's quite frustrating. What would you suggest? Technical SEO | | suskanchan1
- 
		
		
		
		
		
		How to search HTML source for an entire website
 Is there a way for me to do a "view source" for an entire website without having to right-click every page and select "view source" for each of them? Technical SEO | | SmartWebPros0
- 
		
		
		
		
		
		Urls with or without .html ending
 Hello, Can anyone show me some authority info on wheher links are better with or without a .html ending? Thanks is advance Technical SEO | | sesertin0
- 
		
		
		
		
		
		Changing DNS -- SEO implications?
 Hey Moz, We're migrating an old site on an old server over to a new server/DNS. The plan is to keep the same URL structure and reuse our existing URL's. As long as we make minimal changes to each page's content, we should be able to update our DNS entry and get all the pages recreated and assigned to their correct URLs without any reduction in SEO rankings. Is this correct? This site gets a lot of organic traffic and ranks highly on some challenging keywords, so it's key that we retain our rankings as much as possible. I've read that it's wise to lower the DNS time-to-live to one hour, about a day before the move, to help Google crawl the DNS a little quicker. Are there any other recommendations you guys can offer or past experiences? Technical SEO | | stephen_reply0
- 
		
		
		
		
		
		Restaurant menu SEO: PDF or HTML?
 Is it better to use a PDF or hard code restaurant menus (or any document for that matter) in HTML? I want the content to be indexed and thought PDF was the way to go for several reasons, but I wanted to get confirmation on this before I move forward. Technical SEO | | BostonWright0
- 
		
		
		
		
		
		Root vs. Index.html
 Should I redirect index.html to "/" or vice versa? Which is better for duplicate content issues? Technical SEO | | DavetheExterminator0
 
			
		 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				