* XHTML是一个坏主意 *附录C强加给你,但仍然不是一个简单的选择 还 *过渡标记对于新网站来说通常是一个坏主意。 我建议您使用HTML 4.01 Strict而不是任何XHTML。这是最好的 和最简单。 如果您坚持使用XHTML,请将XHTML 1.0与附录C一起使用并学习 做得正确。 不要使用Transitional,使用Strict(无论是HTML还是XHTML) 结果是206个错误,其中大部分是省略了结束标记,但OMITTAG NO是指定的b / b $ b。。 您已将内容标记为XHTML,但标记更像是 HTML。特别是这个HTML元素 < link href =" ../../ Styles / page_album.css"的rel ="样式表" type =" text / css"> 对于XHTML应该是这样的 < link href =" ; ../../样式/ page_album.css"的rel ="样式表" type =" text / css" /> 请注意/在标签的末尾。 这也适用于< imgand< brtags 其他一些要点: *所有XHTML标记名都是小写的,所以< SCRIPT应该是< script> with< script type =" text / javascript" > *替换它:< p>< a name =" 27" id =" 27">< / a> with this:< p id =" id_27" > - 你不需要使用名字,你可以只使用id - 如果你使用id而不是name,你可以使用任何元素,而不是只需 < a> - " 27"是无效的,因为它以数字开头 您的页面也使用< tablemarkup。这对于 图像的网格是合理的,但它仍然非常不灵活。如果您搜索ng档案 (也许是alt.html),最近有一篇关于Ansel画廊的帖子 亚当斯用浮动< divinstead完成的照片。这比 < tablefor更好的浏览器窗口大小更好。 我也不喜欢DreamWeaver,因为它没有帮助 生成一个有效的网站。 非常感谢您的解释。 经过一点点工作我的页面后,我得到了此页有效HTML 4.01 Transitional!来自 http://validator.w3.org/ 我已下载Firefox插件 < http://users.skynet.be/mgueury/mozilla/我将学会使用 .. .. 所以我要验证我网站的其他主页。 最好的问候 JMR Tantale写道: > re: http://www.jmrw.com /Abroad/Barcelone/index.htm 经过一番工作我的页面后,我得到了这页是有效的HTML 4.01 Transitional!来自 http://validator.w3.org/ 您的解决方案的问题在于您选择的DOCTYPE是触发怪癖模式的。 :( http:// www。 hut.fi/u/hsivonen/doctype.html - Berg I used this serviec to check my webpage http://www.jmrw.com/Abroad/Barcelone/index.htm Made with Dreamweaver 8. The result is 206 errors, most of them "end tag omitted, but OMITTAG NO wasspecified.". I don''t understand this result. Should I modify something ? Thanks JMR 解决方案 On 23 Mar, 10:03, "Tantale" <[email protected]:I used this serviecWhich service? The W3? There are many "HTML validators" out there andsome of them aren''t accurate. I would suggest either:<http://validator.w3.org/><http://validator.w3.org/check?uri=ht...w.com%2FAbroad%2FBarcelone> or the much more convenient Firefox plugin:<http://users.skynet.be/mgueury/mozilla/> You''re using XHTML 1.0 Transitional Appendix C This is a bad idea (search the ng archives): * XHTML is a bad idea* Appendix C is forced upon you, but still not a simple choice also* Transitional markup is usually a bad idea for a new site. I suggest you use HTML 4.01 Strict instead of any XHTML. This is bestand simplest. If you insist on using XHTML, use XHTML 1.0 with Appendix C and learnto do it correctly. Don''t use Transitional, use Strict (whether HTML or XHTML) The result is 206 errors, most of them "end tag omitted, but OMITTAG NO wasspecified.".You''ve labelled your content as XHTML, but the markup is more likeHTML. In particular this HTML element<link href="../../Styles/page_album.css" rel="stylesheet" type="text/css"> Should look like this for XHTML<link href="../../Styles/page_album.css" rel="stylesheet" type="text/css" /> Note the "/" at the end of the tag.This also applied to <imgand <brtagsSome other points: * All XHTML tag names are lower case, so <SCRIPTshould be <script> * Replace this: <SCRIPT LANGUAGE="Javascript">with <script type="text/javascript" > * Replace this: <p><a name="27" id="27"></a>with this: <p id="id_27" >- You don''t need to use name, you can just use id- If you use id rather than name, you can use any element, not just<a>- "27" isn''t valid, as it begins with a digitYour page also uses <tablemarkup. This is reasonable for a grid ofimages, but it''s still quite inflexible. If you search the ng archives(maybe alt.html) there''s a recent posting about a gallery of AnselAdams photos done with floated <divinstead. This works better than<tablefor varying brrowser window sizes. I also don''t personally like DreamWeaver, as it''s not helpful forgenerating a valid site. Thanks a lot for your explanations. After a little work my page I got "This Page Is Valid HTML 4.01Transitional!" from http://validator.w3.org/ I have download the of Firefox plugin<http://users.skynet.be/mgueury/mozilla/and I am going to learn to useit.. So I am going to validate the other main pages of my website. Best regards JMR Tantale wrote:>re: http://www.jmrw.com/Abroad/Barcelone/index.htmAfter a little work my page I got "This Page Is Valid HTML 4.01Transitional!" from http://validator.w3.org/ The problem with your resolution is that the DOCTYPE you''ve chosen istriggering quirks mode. :( http://www.hut.fi/u/hsivonen/doctype.html --Berg 这篇关于标记验证服务??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-23 20:27