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
-
Anyone a Bing SEO Expert?
I have a website that is getting great long tail search positions in Google for a website.The site is not getting any Bing or Yahoo positions for these long tail terms. I'm trying to find someone has experience or can give advice on Bing rankings. Is their anything specific I should watch out for when trying to rank in Bing?
Technical SEO | | EngNet0 -
Update page for better SEO score?
Hi, Is it important to update a page sometimes to score better in SEO?
Technical SEO | | parfumerienl
Or if i make a page and never change it, it would be good enough.0 -
Redirection Impact on SEO
Need help urgently. There is the situation [This is how is it working now]: 1. Have a global landing page [say when user types in www.mysite.com - takes user to the global landing page: [www.mysite.com/global/en.html]](http://www.mysite.com/global/en.html] ) 2. Users from this landing page can select a country on his/her choice and get redirected say: [www.mysite.com/us/en.html] Would like to change the functionality as below: 1. When user types in www.mysite.com 1a. Would find the location of the request based on GEO IP and if the request is coming from North America region then would redirect the users to: www.mysite.com/us/en.html 1b. If the request is from any other location/region then it would continue to work as it is currently working: take the user to the global landing page: www.mysite.com/global/en.html Would this change have any negative impact or not found by search engines from SEO perspective? If it does then what are the impacts and if does not then why not. If it does then what is the best possible way to address this request. Appriciate your help. Thanks, Koushik Roy
Technical SEO | | KoushikRoy0 -
Doing SEO for site that publishes articles everyday?
Hi, I was wondering on the best way to do SEO for a site that publishes articles daily. In other words, I add a new url to my site daily. How should I ensure that the new pages are optimized? Do I need to submit each new site to search engines? Any tips?
Technical SEO | | waltergah0 -
Site redesign/cleanup SEO Advice
Hi Everyone, New member here, but loving it. I have some questions that I couldn't find the answers to. We are radically changing our site. Over the years it has accumulated thousands of garbage files, WP installations, etc. We enjoy good rankings for lots of our keywords. Are there articles/advice/suggestions on how to do this with the least harm to our rankings? One of the largest concerns is for pages currently ranked and we want to move them to blog posts with a preceding /blog/ in the url. The filename, title, etc. will all remain identical. the url is www.wulongforlife.com Sure appreciate any advice. Thanks in advance.
Technical SEO | | okuma0 -
Feedback for the onpage seo for this site
Hi, Can the seo gurus here, suggest me if any on page factors affect my site? http://www.ridpiles.com/ Recently i have added, the following post to the main home page, http://www.ridpiles.com/2012/02/different-types-of-cures-for-piles/ This page is somewhat different than the title keyword. As the main page titile is "hemorrhoids treatment". The newly created blog post is on "cure for piles" Does this blog post has any affect on the on page factors due to different title? And do i require any changes regarding the on page seo? Will be waiting for your replies.
Technical SEO | | Indexxess0 -
Sub Domain SEO
I am thinking to Add Sub Domains to get better rankings for Local Searches. So I will develop City Specific Sites with Specific Language. For Example qatar.wisnetsol.com. IT will be in Arabic. If my Good standing and Ranking on Google for wisnetsol.com will help my subdomain to rank better? if we setup wisnetsol.com/qatar, how it can target Qatar in Google Webmaster tools? Will links for qatar.wisnetsol.com and wisnetsol.com are seprate? What do you think about this strategy? Is it good or bad?
Technical SEO | | Khuram0