chris77 — 2012-07-08T23:55:24-04:00 — #1
Do you think search engines use any of the information in the <head> to rank web pages?
ralphm — 2012-07-08T23:59:57-04:00 — #2
Ha ha, o yes indeed. There are some very important items there, such as
<meta content="A really important description of what the page is about" name="description">
<meta content="key, words, about, this, page," name="keywords">
The title you see in search results is generally taken from the <title> element in the head, and the description beneath it from the meta description. Keywords can also help search engines determine the nature of your content, thought I gather Google is not so interested in them these days.
smith_warnes — 2012-07-09T08:03:48-04:00 — #3
Earlier the information in the meta tags was really important and affected ranking a a lot.Use of Keywords now dont have much effect on Page Rank.Google and Bing dont consider keywords,Yahoo still gives them a little importance.However the Description still holds gr8 value.
opnsorsdsgn — 2012-07-09T08:11:07-04:00 — #4
Meta tags Plyas main role for getting rank into search engine. The title described your web page or product or services in one line.
chris77 — 2012-07-09T10:02:08-04:00 — #5
I was up too late when I wrote that overly general question. Do you think search engines use any of the code in the <head> other than title, description, and keywords? What if I have css not in a seprate file?
technobear — 2012-07-09T10:12:47-04:00 — #6
chris77 — 2012-07-09T15:54:00-04:00 — #7
I though maybe I could answer my question by typing into google
and it couldn't find the css code in my site.
Does that finding have any value?
ralphm — 2012-07-09T20:10:09-04:00 — #8
Google is not going to store the CSS in your <head> for its search results. The point of search is mainly to display content that people have displayed in the <body>, which is meant for public display.
chris77 — 2012-07-10T08:31:00-04:00 — #9
So if I have a lot of CSS in the <head>, it's not going to affect the ranking of my page for the terms I have in the page. Right?
ralphm — 2012-07-10T08:48:09-04:00 — #10
chris77 — 2012-07-10T10:48:55-04:00 — #11
That's great. I put my css in in a php file instead of a css file. It loads a lot faster this way, but in view source / page source you see all the css, whereas with a css file view/page source don't show the css. So I wondered if it's viewable in page sources, maybe a search engine would see it.
ralphm — 2012-07-10T19:15:50-04:00 — #12
It's fine to have CSS in the <head> section—such as when you have some styles that only apply to that page. That's not what search engines are looking for. They are looking for on-page content that might be useful to people searching the web.
stevie_d — 2012-07-14T11:22:22-04:00 — #13
Exactly. Search engines are not the policemen of the web, they're not trying to enforce coding standards, they're just trying to return the most relevant content for users. Anything that isn't "content", such as styles and scripts, will be ignored from an indexing and ranking point of view (although certain things like styles that appear to be used to hide text may be considered). Styles and scripts – whether inline, embedded or linked – are not going to be taken as content.
Whether you use inline, embedded or linked CSS and JS depends on what you're doing with it, but SEO isn't an issue. The reason for linking stylesheets rather than embedding them is to improve caching. While embedded CSS (whether hard-coded or included through PHP) might load quicker for one page, when a visitor goes to another page on the site, they have to download the whole lot again. So over the course of a site visit, it will almost certainly give worse performance than a linked stylesheet.
chris77 — 2012-07-15T10:44:44-04:00 — #14
I have my css code in a php file. I used to use a css folder but I found that by looking at the progression of loading bar at the botton left of my ff browser (fire bug?, yslow?) I could actually see the browser waiting for the css folder to open. With the php file no waiting. Up until I added an new image to my home page, my home page loaded as fast as .39 seconds. Just now while writing this it loaded in .40 seconds. (I guess a 16k image doesn't take long to load.)
chris77 — 2012-07-15T10:54:25-04:00 — #15
(Using gtmetrix.com for testing load speed.)