Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check html syntax? 1

Status
Not open for further replies.

zhuzhengyu

Technical User
Jul 21, 2000
19
CN
I was always in trouble situation,thatis, I must be very careful while writing html and I hope to find a tool that could check html syntax automatically and point out where the error may be occurs.<br><br>Now I want to write one simple programme to solve the problem.<br>idea:<br><br>1.use a file named &quot;define.tag&quot; to define tag,eg:<br>html;<br>head;<br>body;<br>td;<br>table;<br>script;<br>.......<br><br>2.read the tags from the file and form a pair of real tags ,eg:<br>&lt;body&gt;&lt;/body&gt;<br><br>we call them tag_head and tag_tail seperately<br><br>3.read the html file to be checked<br><br>4.parse the read in file:<br>form a stack to push tag_head and pop tag_tail continously .<br>.<br>if a tag_head pushed and no tag_tail corespondly pop we record the error including its type,plcae .<br><br>implement:<br>we can use VB,VC++...to realize it .<br>Now I am using java ,so I'd like use it.<br><br>But if someone tell me there is good tool I will be very glad.<br><br>I also want to find a tool that could arrange the disorderly html file into an orderly file in form .<br>
 
Check out this page, it checks the page for you and tells you all syntactical errors and line numbers as well. (If only notepad had line numbers Mmm!!)<br><br>I dont know if you are looking for one that does it locally on your computer, as this one checks pages that are on-line already.<br><br>Hope it helps anyway!<br><br><A HREF=" TARGET="_new"> <p>Chris MacPherson<br><a href=mailto:thedamager@hotmail.com>thedamager@hotmail.com</a><br><a href= on the new Browza's!!<br>
Learn/t/ing D\HTML, Javascript, Java, VB5-6, COBOL, Pascal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top