D
_Douglas Bell
Is there a tool for checking
to make sure all <tags> </tags> are balanced?
to make sure all <tags> </tags> are balanced?
_Douglas Bell said:Is there a tool for checking
to make sure all <tags> </tags> are balanced?
Chris Morris said:_Douglas Bell said:Is there a tool for checking
to make sure all <tags> </tags> are balanced?
If you use a validator [ http://validator.w3.org/ ] then it will tell
you if all tags that need to be closed are closed (this varies
depending on whether you are writing HTML or XHTML).
Download HTMLTidy or Tidy UI._Douglas Bell said:Is there a tool for checking
to make sure all <tags> </tags> are balanced?
C A Upsdell said:Chris Morris said:_Douglas Bell said:Is there a tool for checking
to make sure all <tags> </tags> are balanced?
If you use a validator [ http://validator.w3.org/ ] then it will tell
you if all tags that need to be closed are closed (this varies
depending on whether you are writing HTML or XHTML).
Validating to HTML will not tell you about many missing end tags, since in
HTML many end tags are optional. This is a concern for NN4, which can go
berserk when end tags are omitted.
Validating to xHTML will tell you about all missing end tags, since no end
tag is optional: this helps ensure better compatibility with NN4.
However, browsers have problems with XHTML
(Appendix C
m said:Clarify, please
Appendix C?
Oh, I see now, you mean appendix C ofChris said:XHTML documents are supposed to be sent as application/xhtml+xml and
have an <?xml ... ?> at the start. However, this breaks older
browsers (such as IE 6).
Appendix C allows them to be sent as text/html without the <?xml ?>
(as if they were a HTML document) and only works because browsers
never implemented SGML fully in the first place.
m said:Download HTMLTidy or Tidy UI.
http://tidy.sourceforge.net/
...really slick, and will even correct
some errors for you if you tell it to.
Headless said:And if you tell it not to. It can also remove valid and correct markup
with no option to prevent that from happening.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.