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
-
SEO for products that are on sale in cubic meters (m³)
Hi All, I have some products that we sale that are defined by their cubic meters (m³) Question will Google prefer a URL with /bin/3m³ or /bin/3m3 Any suggestions would be great! Obviously for cleanliness I would prefer m³ over m3 Thanks
Technical SEO | | Redooo0 -
Yoast SEO. After set up 404 error pages
Hello all, Something strange happened with my blog site. I recently signed to MOZ tools. Initially everything was fine, but during my last crawl I got loads of 404
Technical SEO | | A_Fotografy
pages. Few days ago I was tweaking some settings in SEO plugin according to this post https://moz.com/blog/setup-wordpress-for-seo-success What I noticed was that 404 pages were coming from my blog posts, but for
some reason category was missing in those posts. For example this link is 404
https://a-fotografy.co.uk/inchcolm-island-wedding-photography-bailie The one with category is https://a-fotografy.co.uk/wedding-pictures/inchcolm-island-wedding-photography-bailie/ So basically for some reason category was missing. Please let me know how can I fix this instead of doing hundreds of
redirects now. Thank you,
Regards,
Armands0 -
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 -
SEO Optimized Video Gallery
I want create a video gallery in my site. Does anyone know about any video CMS or wordpress video plugin optimized for SEO?
Technical SEO | | Felip30 -
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 -
SEO Developers
I have a team of inexperienced SEO developers and the argument we continually have is that its a marketing role - however most of it is technical, no view state, no js, page load time, csssprite, metatags, frequency of updates to server, duplicate content via coding methodology, lioading content prior to ads, not spidering ads (IT says impossible yet google says required) etc. I looked at your referrals for developers and couldnt find any that recognized SEO as part of their skill set - do you believe tehre aer developers that specialize in this? Thanks, Michelle
Technical SEO | | Silly8880 -
Which is best blogging platform from SEO POV?
I am curious to find out what is the blogging platform of choice for enterprize level companies (employees more than 500, revenue more tan 150M). What would be the best solution from SEO point of view? I have used Wordpress in the past for small companies and feel that is the best. We are currently using Telligent. Is anybody using it?
Technical SEO | | Amjath0 -
SEO-Friendly FAQ Software
Hi, We use Kayako Supportsuite (help desk and FAQ software) installed on our site and it's causing about 80% of all our SEO errors/issues. I've googled a lot and I can't seem to find a FAQ software (we need the ability to maintain and constantly update a large # of questions) that doesn't have duplication (print version, pdf version of each question, etc.), terrible URL structure and an overall very cheesy look. We don't need the helpdesk part, just FAQ functionality. Anybody have any ideas? Thanks!
Technical SEO | | mynewco0