Basic SEO HTML
-
Hello Everyone,
One place I am weak is coding for SEO. I need to get better.
One question I do have is can anyone explain why it's important to place css and java script files in an external file?
How do you do this and how do you know if it's already being done?
If it has not been done on a site is it hard to go back and do?
I understand this is important from a site load time issue
Thanks,
Bill
P.S. Can anyone recommend a resource where I can learn proper html coding for SEO? Thank you!
-
Hi Bill!
A couple of your questions that haven't been answered yet:
How do you do this and how do you know if it's already being done?
When you look at the code for a page, if you see a lot of code within tags, that means that the CSS is on the page rather than in an external file.
You can do the same with JavaScript. If there is a lot of code within the tags in the source code, you know there is JavaScript on the page instead of in an external file.
If it has not been done on a site is it hard to go back and do?
It is very simple to take this code, put it into an external file, then link to it like we do on this particular page's code:
<link type="text/css" rel="stylesheet" href="[/q/moz_nav_assets/stylesheets/production/all.css?0.4.25](view-source:http://www.seomoz.org/q/moz_nav_assets/stylesheets/production/all.css?0.4.25)" />
That is what it looks like when you link to a CSS external file.
If possible though, I'd definitely have someone who knows and understands the code help you out at first. There's nothing more infuriating that making what you think is a small change to a JavaScript file and it end up breaking the whole site.
Good luck! And I hope this helps a bit.
-
A good place to start is to look at google's webmaster guidelines:
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=35769
-
Speeds up the download time of the page - good for Google and good for users. Helps browsers cache objects and speeds up future page views and pages from the same site.
Look at the source code to see if you're linking to a CSS/JS document or displaying it on page.
Easy to change if it's on page - stick it in a new document and link to it. Google around for help.
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
-
Changing URLs for SEO
Hi, Currently we have a page, /business, but we have shifted our strategy to optimize for this page for the keyword "enterprise" instead of "business". The page authority of this page is 18 and our domain authority is 35. I've already updated content and title tags to more of an enterprise focus. Would it be wise to move the page to /enterprise and create a 301 redirect from /business to /enterprise? Or is this too risky from an SEO standpoint? Thanks!
Technical SEO | | mikekeeper0 -
What are the things that need update? before Appying SEO
Hello Everyone, I need Start work on for this site www.tajsigma.com, I want to know Did i need Add any things for Good ranking. what are the things that need update in This site For SEO??
Technical SEO | | falguniinnovative
i know Basic Things robots, title, discription , But i want know Any Additional Things that I need to apply?? can anyone help, please Thanx in advance0 -
Homepage 301 and SEO Help
Hi All, Does redirecting alternate versions of my homepage with a 301 only improve reporting, or are there SEO benefits as well. We recently changed over our servers and this wasn't set-up as before and I've noticed a drop in our organic search traffic. i.e. there was no 301 sending mywebsite.com traffic to www.mywebsite.com Thanks in advance for any comments or help.
Technical SEO | | b4cab0 -
Domain name SEO
I would like to hear your opinion about which between robotics.kawasaki.com and www.kawasakirobotics.com is more effective for SEO of keyword robotics and kawasaki. We have been using kawasaki.com domain name for more than 15 years.
Technical SEO | | Iwashima0 -
Small blog needs paid SEO help
I looked at Moz's recommended companies but they are all for huge blogs and websites. I cannot afford those fees. My blog is small but growing and was hit by a Google Panda tweak back in July. My organic traffic disappeared overnight and although I've been working hard to improve my blog, I still get no organic traffic after being on the first page. I would like to pay someone to look at my site and give me help but I cannot pay what these huge companies are asking for. Any advice?
Technical SEO | | blogger20130 -
Friendly URLS (SEO urls)
Hello, I own a eCommerce site with more than 5k of products, urls of products are : www.site.com/index.php?route=product/product&path=61_87&product_id=266 Im thinking about make it friend to seo site.com/category/product-brand Here is my question,will I lost ranks for make that change? Its very important to me know it Thank you very much!
Technical SEO | | matiw0 -
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
Technical SEO | | Chammy0 -
Switching Hosting & SEO
Hello friends, We are facing the prospect of switching to a new hosting account or company. We are currently using a third-party reseller account but are outgrowing that account. We are considering VPS and dedicated servers. However, this will mean updates for IPs and nameservers. Does anyone have experience with SEO consequences of making switch? Best practices? Tips? Obstacles? Any and all comments/advice welcome. We're trying to balance the potential SEO ramifications of making the switch with the consequences of reduced site speed.
Technical SEO | | Gyi0