开发者

Show HTML errors in Google Chrome?

Can Google Chrome show HTML errors (e.g. unclosed开发者_如何学JAVA <div> tags)?

If so, how does one do it?


~Use HTML Validator extension.~

https://chrome.google.com/webstore/detail/html-validator/mpbelhhnfhfjnaehkcnnaknldmnocglk.


Another options is to use the W3C validator "favelets" to open the W3C validator from a bookmark.

http://validator.w3.org/favelets.html


I'm not sure it can do exactly what you're after without an extension. You can use the developer tools to explore the HTML to see if it is what you expect/intend, but I don't think it will tell you where there are errors.

HTML browsers are designed to be able to taken invalid markup and render it as best they can. It will have a very high tolerance for errors.

You may want to try an extension like one of these.


There is a new HTML5 validator for based on libTidy (same as the firefox version)

https://chrome.google.com/webstore/detail/anjdemaoejlpgmnmkijdemoiebcddhkc


I prefer Validity as it shows errors in the devtools console. It also lets you set up a list of hostnames where it should run on each page load which has been super useful for me during development.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜