jimdo网站优化-验证你的网页是否符合W3C标准

        W3C验证:验证你的网页是否符合W3C标准。

看到有些网站页面上有 W3C 验证的链接,自己的网站已经上线几个月了,也该让 W3C 验证一下了。毕竟 W3C 是权威是标准。编写符合 W3C 标准的网页,不仅容易让各大浏览器解析,呈现给用户一致的界面,而且也讨搜索引擎google baidu)的喜欢,对网站排名也有一定的帮助。

1. W3C 验证网页代码网址(html,xml)

 

http://validator.w3.org/

 

经过本人几次修改,我的诸葛草帽电脑工作室总算是通过了w3c标准验证(见下图),还有2warning(s)也没有办法了,jimdo网站中就算是自定义模板还是有一部分代码不可以改动的.

W3C验证:验证你的网页是否符合W3C标准-诸葛草帽电脑工作室

2. W3C 验证 CSS 代码网址

 

http://jigsaw.w3.org/css-validator/

 

这个就不提了,jimdo网站的css错误多得数不过来!郁闷!就连jimdo官方网站都是,没法改.在这里顺便提一嘴,如果是自定义模板想精简css的话,可以到http://cleancss.com/去看看,在线精简,不错的!

3. W3C 验证页面的链接

 

http://validator.w3.org/checklink/

 

检查网站是否存在有问题的链接,搜索引擎可是非常不喜欢网站存在死链的哦!

Write a comment

Comments: 62
  • #1

    独星 (Saturday, 14 August 2010 18:24)

    我觉得你的第二段简直是废话~~~

  • #2

    淘宝600家园 (Thursday, 19 August 2010 22:10)

    诸葛兄:是否可以详细介绍一下,如何修改代码....怎样通过了w3c标准验证的?期待新作......

  • #3

    net123 (Friday, 27 August 2010)

    折腾了好几天, 终于把我的网站改到可以通过W3C的测试了! 在改的过程中让我学到了不少DIV和CSS的知识...

  • #4

    诸葛草帽 (Thursday, 02 September 2010 21:24)

    回复淘宝600家园:经过验证网站测试后会在后面提示不能通过都部分,依照提示修改就好了

  • #5

    诸葛草帽 (Thursday, 02 September 2010 21:29)

    回复net123:那要恭喜你了,呵呵

  • #6

    淘宝600家园 (Friday, 10 September 2010 18:13)

    诸葛兄:请教一下如何修改或替换 < > &amp; 这几个代码?试过多次都改不了,请教了.....

  • #7

    诸葛草帽 (Friday, 10 September 2010 18:58)

    回复淘宝600家园:&amp;是符合W3C标准的代码,不知道为什么要替换,请具体说明下,顺便提醒一下,我检测了你的网站源码,发现你用了比较多的类似“<td style="width: 200px; height: 60px;" align="left"......”,既然你用了style="",那为什么不把align变成float添加到style里呢,这样一来效果没有丝毫差别,W3C还会通过,修改之后的代码“<td style="width: 200px; height: 60px;float:left"...”这样修改之后你的网站错误会减少很多的,还有类似width="240"的代码,你也可以全改加到style里,错误又会减少很多

  • #8

    淘宝600家园 (Friday, 10 September 2010 21:35)

    呵呵,当初建站时不太会table,现在改过来了, 验证网页代码(html)时,提示<div id="container">中的 < 符号出错,改为&lt;也不行,还有&amp;中的&出错,修改后也不行,请教。。。

  • #9

    诸葛草帽 (Friday, 10 September 2010 22:16)

    回复淘宝600家园:W3C检测提示中红色显示的“<”、“>”部分只是告诉错误出现的大致位置,错误是用粗体文字提示的,单单是符号“<”和“>”是不会有错误的,你的网站错误的属性大致有“name、border、bgcolor、cellspacing、width、align、marginwidth、marginheight、scrolling、font、frameborder、language”,一般原因是属性过时了,需要找其他代码代替

  • #10

    淘宝600家园 (Friday, 10 September 2010 22:30)

    我多数用的都是table,要减少这些属性的使用就要使用div+ccs了吧.....

  • #11

    诸葛草帽 (Saturday, 11 September 2010 07:56)

    回复淘宝600家园:使用div+css当然是好的,但是如果你嫌麻烦仍旧使用table布局的话替换这些属性使其符合标准也是完全可以办到的

  • #12

    淘宝600家园 (Saturday, 11 September 2010 13:34)

    是的我也是这样想,现在剩下一个问题出错:1号线,第1栏:没有文档类型声明,将未经验证的解析

    <div id="container">

    该文件类型不能确定,因为该文件没有正确的DOCTYPE声明。该文件看起来不像HTML格式,因此自动回退不能执行,该文件只是针对基本标记语法检查。


    请教一下,出现以上问题要如何处理?

  • #13

    诸葛草帽 (Saturday, 11 September 2010 14:59)

    回复淘宝600家园:不知道以上提示是怎么出现的?原文就是这样的么?

  • #14

    淘宝600家园 (Saturday, 11 September 2010 16:19)

    原文:
    Line 1, Column 1: no document type declaration; will parse without validation

    <div id="container">



    The document type could not be determined, because the document had no correct DOCTYPE declaration. The document does not look like HTML, therefore automatic fallback could not be performed, and the document was only checked against basic markup syntax.

    Learn how to add a doctype to your document from our FAQ, or use the validator's Document Type option to validate your document against a specific Document Type.

  • #15

    诸葛草帽 (Saturday, 11 September 2010 16:43)

    回复淘宝600家园:我测试了你的网站,并没有这个问题啊,如果你有其他网站因为<div id="container">出问题,需要视实际情况而定

  • #16

    淘宝600家园 (Saturday, 11 September 2010 16:51)

    我就是测试淘宝600家园这个网站的HTML代码,出现的问题,就差这问题就搞掂啦,CSS已测试过了,我还是再找找原因,不管怎样先多谢诸葛兄的解答~~~~~~

  • #17

    诸葛草帽 (Saturday, 11 September 2010 16:54)

    回复淘宝600家园:不客气,祝你早日完成吧,呵呵

  • #18

    Obat Penambah Gairah Seksual Pria (Saturday, 12 September 2015 09:04)

    I learned many lessons from this article , thank you very much

  • #19

    Obat Disfungsi Ereksi Yang Sudah Parah (Monday, 14 September 2015 06:34)

    thank you for sharing the information , I really admire your information

  • #20

    Obat Impotensi Tradisional Paling Mujarab (Tuesday, 15 September 2015 06:11)

    thank you for sharing the information , I really like to read this information

  • #21

    Obat Herbal Libido Rendah Paling Ampuh (Wednesday, 16 September 2015 04:50)

    This information inspired many people , thank you for share this information

  • #22

    Obat Herbal Sperma Lemah Terbaik (Thursday, 17 September 2015 08:01)

    information that you created quite interesting , thanks already willing to share information

  • #23

    Cara Supaya Sperma Subur Dan Kental (Saturday, 19 September 2015 06:28)

    good , I am very interested in this information has been shared thanks

  • #24

    Obat Kuat Hubungan Seksual Terpercaya (Monday, 21 September 2015 06:20)

    You information unique I love to read , thank you for sharing

  • #25

    Obat Herbal Agar Orgasme Berkali kali (Tuesday, 22 September 2015 11:31)

    very interesting information , I am addicted to reading this information

  • #26

    Obat Kuat Hubungan Seksual Terpercaya (Friday, 25 September 2015 04:28)

    the information is very interesting and inspiring , I am glad to read this information , thank you for willing to share information

  • #27

    Tips Tahan Lama Di Atas Ranjang Bagi Pria (Friday, 25 September 2015 10:32)

    I was very impressed after reading this information , continue to share your information so that everyone

  • #28

    Obat Herbal Lemah Syahwat Permanen (Saturday, 26 September 2015 05:49)

    thank you for willing to share information , I was greatly helped by the information which has been distributed this

  • #29

    Obat Herbal Lemah Syahwat Permanen (Saturday, 26 September 2015 06:19)

    thank you for willing to share information , I was greatly helped by the information which has been distributed this

  • #30

    Obat Herbal Sperma Kosong Paling Mujarab (Tuesday, 29 September 2015 06:10)

    VERY INTERESTING , THANK YOU HAVE BEEN WILLING TO SHARE

  • #31

    Obat Herbal Untuk Azoospermia Terpercaya (Wednesday, 30 September 2015 06:15)

    information fairly educated, continue to share information so that other people read it

  • #32

    Cara Supaya Ejakulasi Tertunda Sembuh Total (Tuesday, 06 October 2015 05:29)

    Thank you for the information, continue to develop and share the information you have

  • #33

    Obat Paling Ampuh Untuk Sperma Encer (Tuesday, 13 October 2015 04:51)

    go ahead and develop your skills in making and provide information, and I am also very grateful you have shared information

  • #34

    Tips Jitu Agar Ereksi Bisa Tahan Lebih Lama (Thursday, 15 October 2015 10:38)

    Thank you for the information you have shared

  • #35

    Mengobati Ejakulasi Dini Dengan Herbal Alami Terbaik (Friday, 16 October 2015 03:04)

    I think you get the information that should be raised again, but thank you for willing to share information

  • #36

    Sperma Encer Dan Pengobatan Herbal (Monday, 19 October 2015 10:38)

    thanks for the article that has been shared, please visit our website also well heheu

  • #37

    Obat Kuat Herbal Untuk Mengobati Disfungsi Ereksi (Tuesday, 20 October 2015 10:37)

    Thank you still share articles and information

  • #38

    Mengatasi Ejakulasi Dini Dengan Herbal Terbaik (Wednesday, 21 October 2015 10:38)

    I hope you come back proofread your article because I think your article is too simple

  • #39

    Metode Tepat Membuat Sperma Kental (Thursday, 22 October 2015 11:04)

    I hope you continue to develop and explore the potential of making the article, thank you

  • #40

    Ejakulasi Dini : Gejala Dan Cara Mengobatinya (Friday, 23 October 2015 07:51)

    thanks for the advice, I am so relieved now Heu Heu

  • #41

    Obat Kuat Penambah Gairah Seks Pria (Tuesday, 27 October 2015 07:03)

    perfect information

  • #42

    Obat Kuat Untuk Mengobati Sperma Encer (Wednesday, 28 October 2015 05:33)

    I am amazed with your thoughts, this quality information. Thank you

  • #43

    Cara Efektif Mengatasi Ejakulasi Dini Secara Permanen (Monday, 02 November 2015 06:57)

    Thank you for the information, the knowledge I gain more insight

  • #44

    Suplemen Herbal Pria Kuat Hubungan Seks (Wednesday, 04 November 2015 05:28)

    You are very creative, thanks for the information

  • #45

    Obat Herbal Nyeri Saat Ejakulasi (Thursday, 12 November 2015 04:49)

    I enjoyed reading your article, because it is simple and easy to understand it

  • #46

    Obat Herbal Gangguan Ejakulasi Terhambat (Saturday, 14 November 2015 03:38)

    very good, very interesting discussion this article

  • #47

    Metode Efektif Penyembuhan Ejakulasi Dini (Tuesday, 17 November 2015 07:59)

    very easy to read and be seen

  • #48

    Obat Herbal Infertilitas Pria (Thursday, 19 November 2015 10:14)

    article that you create a very neat and very easy d understand it, nice work

  • #49

    Jual Obat Herbal Ejakulasi Dini Permanen (Monday, 30 November 2015 02:47)

    Jual Obat Herbal Ejakulasi Dini Permanen

  • #50

    Ramuan Herbal Untuk Impotensi Atau Disfungsi Ereksi (Thursday, 03 December 2015 03:24)

    interesting, informative, thank you for sharing

  • #51

    Cara Sederhana Menyembuhkan Ejakulasi Dini (Friday, 04 December 2015 03:27)

    become positf. Perhaps in another article could be little to explain the meaning of positive thoughts.

  • #52

    Obat Tradisional Kuat Intim Berjam Jam (Monday, 07 December 2015 05:14)

    I think your article, is too difficult to understand

  • #53

    Pencegahan Dan Pengobatan Ejakulasi Dini (Saturday, 12 December 2015 03:07)

    thanks for the information and have shared

  • #54

    Obat Tradisional Mani Encer Dan Mudah Keluar (Monday, 21 December 2015 05:46)

    Obat Tradisional Mani Encer Dan Mudah Keluarthank you very useful information for me

  • #55

    Tips Sederhana Membuat Kuat Tahan Lama Berhubungan Seks (Wednesday, 06 January 2016 03:54)

    well...I just discovered my favourite tab on this site

  • #56

    Cara Mengobati (Monday, 25 January 2016 07:53)

    article interesting, exciting and amusing discussion

  • #57

    Cara Mengobati Impotensi Dengan Sederhana (Tuesday, 26 January 2016 10:33)

    Cara Mengobati Impotensi Dengan Sederhanawow, I recently read an article that discusses the issue

  • #58

    Cara Mengobati Diabetes Secara Efektif (Tuesday, 09 February 2016 10:20)

    content and writing articles that you create a very inspiring, incredible

  • #59

    Cara Mengobati Asam Urat Efektif,Cepat,Dan Aman (Monday, 15 February 2016 09:04)

    I will spread this article, may be useful information for my friends and other people

  • #60

    Cara Mengobati Radang Paru Paru Dengan Efektif (Thursday, 03 March 2016 07:19)

    I hope you continue to be consistent to provide information of interest

  • #61

    Cara Mengobati Kanker Payudara Dengan Efektif Dan Aman (Tuesday, 08 March 2016 02:21)

    I agree with the contents of this article, but that can be further developed its language

  • #62

    Cara Supaya Sembuh Patah Tulang Tangan (Monday, 29 August 2016 06:32)

    I understand about an article thanks