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 problem: wrong language sitelinks
The French and German version of my web site are showing mixed language sitelinks I have no idea how to fix this now that Google have remove demote sitelinks feature, how can I make sure only the german site links appear in the german version of the site and french site links only appear in the french version of the site? www.mercimamanboutique.com/de-de/ www.mercimamanboutique.com/fr-fr/ Thanks again
Technical SEO | | ss20160 -
Geographic location of hosting affect SEO
Can anyone confirm if its the geographic location of the web hosting or the domain hosting that can affect seo ? I have a client who has their domain hosting and Website hosting in Australia however their they have a .co.nz and their target market is in New Zealand. thank you
Technical SEO | | summer3000 -
Are sitewide links bad for SEO?
I have 11 real estate sites and have had links from one to another for about 7 years but someone just suggested me to take them all out because I might get penalized or affected by penguin. My main site was affected on July of 2012 and organic visits have dropped 43%...I've been working on many aspects of my SEO but it's been difficult to come back. Any suggestions are very welcome, thanks 🙂
Technical SEO | | mbulox0 -
Wordpress Pods and Wordpress SEO by Yoast
Hi I am optimising a new site that has been built in Wordpress using Pods. The Yoast Wordpress SEO plugin is not recognising any content on the site - has anyone any ideas on how to get around this - does it matter - is it the plugin that is at fault rahter than the set up of the site?
Technical SEO | | Highlandgael1 -
Is all in one seo getting rid of my google authorship?
is all in one seo getting rid of my google authorship? I had it before and after installing All in One it is not coming up anymore. I have nothing in the google plus field of the main All in one settings, and I have it inserted in my user->your profile. When I view page source it is there. But it does not show up in the search, see: https://www.google.com/search?q=chicago+nightlife+superstar It even works in the rich snippet tester: http://www.google.com/webmasters/tools/richsnippets?url=http%3A%2F%2Fwww.howlatthemoon.com%2Fdueling_piano_bar%2Fchicago-nightlife-superstar%2F&html= Also my title has changed. It is correct in the tester but not in Google. Please help!!!
Technical SEO | | howlusa0 -
How do you mark a quote HTML wise?
Hi, As far as I know, in the past Italic was used to emphasize (similar use to Bold). Now I've seen people use Italic for quotations. Is that the correct thing to do for an entire paragraph or is it a problem for Google wise? Thanks
Technical SEO | | BeytzNet0 -
Dedicated ip helpful for seo
I read somewhere a while back that having a dedicated ip address was helpful for seo if this true or just another rumor? Also I read you should purchase your domain name for multiple yrs, what do you guys think?
Technical SEO | | TinaGammon0 -
.lbi file - SEO friendly or not?
Up until yesterday afternoon i had never heard of a .lbi file. It turns out it is a library file used by Adobe Dreamweaver. From what i can tell it works like a client side included but i am unsure of the technology behind it. The issue:
Technical SEO | | kchandler
When running through a recent SEO audit for a new client i found these .lbi files being used all over there site for site wide callouts and even navigation. When viewing this content through firebug or in the browser you can see the executed HTML content but when viewing the source or the page in seo-browser.com the content is nowhere to be seen. So my thought is this is not SEO friendly and is the same as displaying content in any client-side script like JavaScript or JQuery. Any feedback or thoughts on this subject would be awesome, especially if anyone has used these previously. Unfortunately i cannot share the client site but i would be more than happy to answer any questions if more detail is needed. Thanks in advance - Kyle0