Tool to find malformed HTML?

后端 未结 5 1114
有刺的猬
有刺的猬 2021-01-13 22:37

I\'m looking for a tool that could help me fix malformed HTML. For example:

Test
相关标签:
5条回答
  • 2021-01-13 22:49

    This sounds like a job for HTML Tidy.

    0 讨论(0)
  • 2021-01-13 22:54

    HTMLTidy will fix your errors

    xmllint will find your errors

    0 讨论(0)
  • 2021-01-13 22:59

    If you want a command line interface, you can use: https://github.com/yaniswang/HTMLHint

    It has also its grunt plugin: https://github.com/yaniswang/grunt-htmlhint

    0 讨论(0)
  • 2021-01-13 23:00

    https://addons.mozilla.org/en-US/firefox/addon/249 This firefox extension has done me good as well...

    0 讨论(0)
  • Even the W3C Validator will find your malformed/unclosed HTML.

    I would, as a rule, always be sure to pass my HTML and CSS through their validators, though HTML Tidy is a nice little app to have around too.

    0 讨论(0)
提交回复
热议问题