当前位置: 首页 > 网络学院 > 设计教程 > 设计理念 > 网站的设计如何能让搜索引擎优化——三种利用css的方式

设计理念
Flash网页设计的优点与缺点
大学网站内容应该从简
设计适合所有浏览器的网站
高水平网站设计的三个主要规则
根据你的需要选择网站类型
网站内容翻译
文化影响网站本地化
改进网站的几条建议
创建吸引用户的确认网页
优化网站图片
设计小型网站的7条重要规则
运用免费工具检查链接系统
避免使用Splash引导页
数码摄影中避免出现高压缩率的图片
避免出现网站设计错误
网站外观设计也很重要
网站设计应该从简
合理安排网站文字内容
设计站点定义
网站内容比布局更重要

设计理念 中的 网站的设计如何能让搜索引擎优化——三种利用css的方式


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 1523 ::
收藏到网摘: n/a

This article will point out 3 simple and highly effective web design techniques that use cascading style sheets to improve your web design and make your website perform better in the major search engines.

这篇文章将会提到三种简单、但很有效的设计技术来指导你正确地利用css改进网站的设计,以使网站能在大多数搜索引擎中的排名靠前。

First of all, what is CSS? CSS stands for cascading style sheets and CSS is a way of separating presentation code from your actual content in web design. Usually you build up a set of CSS style rules that are stored in a separate file that has a .css file extension. You then link to the CSS file from your web pages using an HTML link tag.

首先介绍一下什么是csscss是层叠式样式表的意思,是一种把实际内容与陈述代码分离的方法。通常,网站设计中会建立一整套的css样式标准,这些标准存储在一个扩展名为css的单独文件中。然后利用HTML链接标签设计网页的时候,就会用到CSS文件中的内容。

There are many, many web design advantages to separating your presentation code off into separate CSS files and this article will tell you 3 excellent ways that you can use CSS to make your web design more search engine friendly.

网页设计中,把陈述编码转化成单独的css文件,可以使工作方便很多。运用这篇文章介绍的三种方法来设计网站,可以使网站更容易被搜索引擎搜索到。

Web Design Technique 1 - Us CSS to Structure Your Document
网站设计技巧之一—用css技术构建文件

Let's consider the facts that we know about search engines. They send their search engine robots to your site to read the content that you have there and the easier it is to find for them the better because they don't waste much time looking. So having said this, what is the point of bogging down your pages with lots of un-necessary presentation markup that could quite easily be stored off in a separate CSS file. Most often this means removed any extraneous table tags and replacing them with a smaller number of HTML div tags which can be formatted using CSS rules. This removes the vast majority of presentational markup and leaves you with nicely formatted content that the search engines can easily find and index.

首先考虑一下搜索引擎运行的实事。搜索引擎机器人进入网站后,浏览网站上的内容,因为这些工具不会浪费过多的时间去寻找,所以网站的内容是越容易被搜索到越好。考虑到这个问题,有些网页的表述结构是不必要的,这时要去掉。在一个单独的css文件中这些结构会更容易储存。这就意味着,要用少量的HTML标签代替那些没有任何关系的表格标签,因为运用css规则可以更好地安排HTML标签。把大量的多余的标记去除以后,只剩下了安排合理的内容。这样搜索引擎就更容易发现网站并对网站做索引。

Web Design Technique 2 - Us CSS to Style Your Header Tags
网站设计技巧之二-运用css设计标题标签

We also know that search engines place a huge amount of importance on the header tags - h1,h2,h3 e.t.c. that they find in your pages. The thing that puts most inexperienced web designers off using header tags is that by default modern browsers render them in massive black text that looks really ugly. This is where CSS comes in. CSS can be used to easily make your header tags appear in nicely formatted, attractive text that both scores well with search engines and is pleasing to the eye of the user - perfect!

我们知道,搜索引擎会重点去搜索网站中可以找到标题,例如,标题1,标题2,标题3等等。设计标题标签的时候,令很多没有经验的设计者头疼的是,浏览器用大量很难看的黑色信息去呈现。这时候就要用css了,它能使标题设计格局更合理,文本内容更能吸引搜索引擎来搜索。并且这样完美的文章更能吸引浏览者的眼球。

Web Design Technique 3 - Us CSS to Create Rollover Images
网站设计技巧之3-利用css创建图像

Traditionally rollover images are created using 2 graphics for the on and off states that are toggled on and off using some complex JavaScript code. This JavaScript code can bloat your web pages and since it is not content and just appears as gibberish to search engines it can adversely affect your rankings to have lots of embedded JavaScript in your web pages. A much better way to accomplish the same web design effect is to use CSS. Your still need your 2 graphics but you actually create a normal text link in your (that can also have keyword targeted anchor text) and use CSS to format its appearance. This is as simple as making the link a block level element in your HTML, setting it a height and width and then defining it 2 different background images, 1 for when the link is in its 'off state' and when for when the user is hovering over the link.

使用图片相互切换的方式来实现链接效果的传统做法是运用一些相对复杂的JS中的切换功能来实现的。JS编码不是网页要呈现的真正内容,只是一些无关紧要的语言,它对搜索引擎非常不友好,所以如果在网页中过多地运用这种技术来处理内容,会影响到网站在搜索引擎中的排名。利用css来设计网页是一种更好的办法。利用2种图形在网页中建立文本链接,运用css来设计布局。在HTML中,把链接内容展现出来,设计出长度和宽度,然后把2种图像定义为两种不同的背景,一张图片是在鼠标离开时呈现,另一张图片在鼠标点击时出现。

Conclusion:
结论:

Cascading style sheets are a very powerful way of separating presentation code from your actual content and the search engine optimisation benefits the CSS will bring to your web design are undeniable. Why not put these CSS web design techniques to work on your website today?

css
是一种分离表述编码和实际内容的一种最有用的方式,也是一种使搜索引擎最优化的方式,这一点是不可否认的。那么为什么不把这种css技术应用到现在的网站设计中呢?

评论 (0) All

登陆 | 还没注册?