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
-
Does having a sub-domain on a different server affect SEO?
I'm working with a company that has a hard-coded website on the root domain, and then a WordPress blog on a subdomain on a separate server. We're planning on implementing a hub and spoke model for their content, hosting the main hubs on the root domain and the linked articles on the blog. Is having the blog on a different server going to hinder our SEO efforts?
Technical SEO | | KaraParlin0 -
Are there any SEO issues we should be aware of on Gutenberg?
We are launching a new website and switching to WP 5.0 Gutenberg. Are there any issues we should be aware of related to SEO with the new platform?
Technical SEO | | AegisLiving0 -
What will be the future of seo ?
this question may sound like old one but i want to know something in depth. i mean will seo live forever ? Will i loose my seo job ? so just wanted to know what will be the future of seo ?
Technical SEO | | isolve1 -
What are your thoughts on Twylah and SEO?
I recently signed up for Twylah. If you are not familiar with it, Twylah creates a summary of all your tweets, which you can then add to your site to make them easily accessible for humans and for search engines. On first glance I am really liking this idea, however after adding Twylah to our site, our crawl diagnostics took a major spike in errors and alerts: https://dl.dropbox.com/u/90501/static/Diagnostics%20After%20Twylah.png Here is our Twylah page: http://tweets.hingeheads.com I am not a SEO expert, but the number of errors is worrying me. Are we getting penalized by Search Engines/Google because of the high number in errors/alerts? Curious to hear your thoughts. P.S. I have fwd this to the Twylah team. They will get back to me in the next few days.Diagnostics%20After%20Twylah.png
Technical SEO | | hingeheads0 -
Different HTML based on resolution
Is it acceptable in terms of SEO to display different HTML based on a users resolution size? I feel I'm wasting space on my site catering for all the 1024 x 768ers
Technical SEO | | niallfred0 -
SEO - Localization
Hello Folks, I'm curious why my landing page is ranking at #1 on www.google.com.br ( brazil ). keyword: build wizard diablo 3. My lp is above well know domain names such as: wikia.com , blizzard.com , and also above a keyworded domain name: www.wizardbuilds.com/ Is just because my website is focus in brazilian google( .com.br ) or is because my landing page are better than the others( i don't think so)? Thanks.
Technical SEO | | augustos1 -
Is SEO affected when hosting service is changed?
I put my plan to change web hosts on abeyance when an SEO friend of mine told me that it would negatively impact the sites SEO. I am not changing the url or anathing, just the host.
Technical SEO | | ambisuite0 -
What are the SEO implications of using Interstitials?
Hi, I want to implement an interstitial similar to http://timesofindia.indiatimes.com/defaultinterstitial.cms. Within few seconds it gets redirected to http://timesofindia.indiatimes.com/. What are the SEO implications of having this sort of arrangement? Regards
Technical SEO | | IM_Learner0