View Full Version : why got so many errors and still works?
jdleung
07-18-2006, 03:52 AM
I have just validate my site, and got so many errors.
http://validator.w3.org/check?uri=www.jdleungs.com
and still the site works fine.
w3.org points out the errors, but some of them are ok, I think.
such like:
Error Line 21 column 7: end tag for element "style" which is not open.
</style>
any help?
DikkieBurger
07-18-2006, 08:37 AM
Some fixes in your template.
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="templates/Tmysimple/light.css"/>
<link rel="alternate stylesheet" type="text/css" href="templates/Tmysimple/dark.css" title="dark" />
</style>
Just delete </style>, don't kow why it's there....
<div>
<a href='index.php?auto=1&showimage=241' title='播放幻灯片-Play slideshow'><img src='templates/Tmysimple/img/play.gif'></a>
<a href="#" title="访问人数:2391 vistors,图片:241 images"><img src="templates/Tmysimple/img/stats.gif"></a>
<a href='#' onclick="setActiveStyleSheet('light'); return false;" title="明亮风格-Light style"><img src="templates/Tmysimple/img/light.gif"></a>
<a href='#' onclick="setActiveStyleSheet('dark'); return false;" title="暗色风格-Dark style"><img src="templates/Tmysimple/img/dark.gif"></a>
<a href='index.php?x=browse&pagenum=1&style=1' title="文本存档-Text archive"><img src="templates/Tmysimple/img/archive.gif"></a>
<a href='index.php?x=browse&pagenum=1' title="缩略图-Thumbnails"><img src="templates/Tmysimple/img/thumb.gif"></a>
<a href="#addcomment" onclick="flip('add-comment'); gotocomments(); return false;" title="评论-Comment(0)"><img src="templates/Tmysimple/img/comment.gif"></a>
<span id="eng_address"><a href='./index.php?x=rss'>RSS 2.0</a> <a href='./index.php?x=atom'>ATOM feed</a></span>
<!--<span id="eng_address">2391visitors 241photos <a href='./index.php?x=rss'>RSS 2.0</a></span>-->
</div>
Just add in every img tag an alt="" tag and you have to close the img tag like: <img src="templates/Tmysimple/img/thumb.gif" />
Replace every & in your template with &.
<div id="thumbrow"><a href='./index.php?showimage=239'><img src='thumbnails/thumb_200607_20.jpg' alt='200607_20.jpg' title='200607_20.jpg' class='thumbnails' width='41px' height='32px' /></a><a href='./index.php?showimage=240'><img src='thumbnails/thumb_200607_21.JPG' alt='200607_21.JPG' title='200607_21.JPG' class='thumbnails' width='41px' height='32px' /></a><a href='./index.php?showimage=241'><img src='thumbnails/thumb_200607_22.JPG' alt='200607_22.JPG' title='200607_22.JPG' class='current_thumbnail' width='41px' height='32px' /></a><br><SC_BROWSE_CATEGORYh></div>
At an / at the end of the line to the br tag like this <br />
<span style="float:right;" id="eng_address">
<FAST_EDIT><br>
Same here..
<label for="name">姓名-<span id='eng_address'>Name</span></label><br>
<label for="url">网址-<span id='eng_address'>Website</span></label><br>
<label for="email">电子邮件(不公开)-<span id='eng_address'>Email(not visible)</span></label><br>
<br> 评论-<span id='eng_address'>Comments:(0)</span><p >
<ul><li>暂时还没有评论。<br>No Comments Yet.</li></ul>
And here.
jdleung
07-19-2006, 03:07 AM
yes, thanks.
some errors were fixed. but I still keep no "alt", since I'm using link "title". if I insert alt="" , the title will not display. and I can't use "alt" tag to display infomation for some browser somehow refuse to show it.
gardenlevel
07-19-2006, 03:51 AM
??? you can use the title and alt tags together, can you show me an example where this doesn't work?
jdleung
07-19-2006, 04:15 AM
??? you can use the title and alt tags together, can you show me an example where this doesn't work?
in firefox and opera the title will be displayed in priority, and in ie the alt tag will be the priority. you can test in your computer.
thanks.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.