HTML Syntax Checker
| What is an HTML Syntax Checker? |
|
The HTML Syntax checker is a program that will attempt to help you with problems in
making your webpage, or at least in making them work correctly. It does this by looking
through your code to see how the tags look. If you haven't already attempted to make
your webpage, or at least read the relevant QuickReads (from the HTML Tutorial) and the Assignments, then most of this
won't make sense yet.
First off, this program will NOT make the webpage for you as it doesn't actually change any of your code. What it does do is check for some common errors and report them to you. It will also attempt to tell you what line number you should be looking at. Again, it does NOT actually fix any problems, just alert you to them. |
| So what exactly does the checker tell me? |
It will (or at least try to):
|
| Sounds great, so how do I use it? |
| After creating a webpage (index.html) in your grove account
(c3063xxx) you can then use this program in one of two ways. Both ways produce the same
output. The easiest way is probably to use the checker through a web page at
http://grove.ufl.edu/cgi-bin/cgiwrap/u3063bnk/htmlcheck.cgi. Enter your username (grove
account) and the name of the file you wish to check (probably index.html) into the form.
The second way to use the checker is to call it directly from within a telnet window to grove (the place where you created the webpage). Call this program by typeing: /class/cgs3063/u3063bnk/bin/htmlcheck OR ~/../u3063bnk/bin/htmlcheck This must be typed while in your public_html directory (the same place where your index.html file is, so you can type that command right after using pico). The program will check through your index.html file. If you have a file other than index.html that you would like to check (which you will later) then use the command /class/cgs3063/u3063bnk/bin/htmlcheck filename OR ~/../u3063bnk/bin/htmlcheck filename where filename is the full name of the file (like main.html) you want to check. You can also copy this program to your own directory (for convenience) by: cp /class/cgs3063/u3063bnk/bin/htmlcheck . (notice the . at the end) while in your public_html directory. This way in the future you will only have to type: htmlcheck instead of the other whole long mess. If the program seems to be stuck (meaning it doesn't display anything for a while) then press the control key and the letter c at the same time to break out of program (and please tell us what happened so that we can see if we can fix the checker). |
| Limitations |
| Note: this program does not catch all errors. The testing on values
for attributes is pretty generic and may let invalid things go by. You are not guaranteed a
good grade just because the checker did not find any problems. However, it is likely to catch
many of the simple errors that can be made. Also, this program is not complete in that it is
in what is called "Beta" stage (Beta stage means I think it works, but I haven't tested every
possible case and won't guarentee that it works). It may give the wrong output from time to
time, but not often (send us an email with your username and a description of what went wrong
to c3063qed
The syntax checker does not change your webpage (or any other file) so there isn't really any
danger in using it. It can save you many hours of testing your page.
|
| And beyond ... |
| For those of you who are interested, feel free to copy and make
modifications to the code provided the beginning comments regarding the owner are maintained.
This program was written for Perl 5. If you make modifications you think would be of benefit
to the class, tell us (email the question account c3063qed
able to run on grove). Also, the "alpha" version is in the same directory as htmlcheck and it
has a filename of ec (NOTE: the alpha version is not guarenteed to work correctly, in fact it
is not even guarenteed to run at all). htmlcheck may change from time to time as we find ways
to improve it. ec could change minute by minute as we test/play with it.
|
| Index |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |