For example, whole sections of your page might disappear because of a single typo (have you ever accidentally left the > off of a tag?). Also, the better Web browsers are sometimes smart enough to figure out what you meant to do, even if you have syntax errors, but your page might not display properly in someone else's browser if it has syntax errors. HTML Scan can identify various syntax problems to help you create error-free Web pages.
Here are some examples of HTML errors:
Example #1: One of the <P> tags in this example has a syntax error which will cause the entire third paragraph to be missing.
This is paragraph #1.
<P>
This is paragraph #2.
<P
This is supposed to be paragraph #3, but it will not be displayed.
<P>
This is paragraph #4.
Example #2: Some browsers will display the entire sentence below in bold, but other browsers will turn bold off after the first </B> tag. This type of situation can easily happen when you go back and "bold" something which is in a larger section of text that is already bold.
<B>This whole sentence <B>should</B> be bold, but on some browsers only the first 4 words are bold.</B>
Example #3: In the sentence below, most browsers will behave as if you had put </I></B> instead of </B></I>, but when tags are closed off out of sequence then you can't really be sure how browsers might react.
<B><I>This is bold italics, but the "end tags" are in the wrong order.</B></I>
Example #4: Browsers usually don't mind if you use the <LI> tag outside of a list, but the list item might not be displayed in the way that you wanted it to be displayed, such as with an ordered list. Some browsers will display the first list item below as a bulleted unordered list item, but other browsers will display it as a simple paragraph.
<LI>This is the first list item, which is accidentally outside of the list.
<OL>
<LI>This is the second list item.
<LI>This is the third list item.
</OL>
As the tags are displayed in the list box, they are indented to make it easier to see the relationships between "start tags" and "end tags," as in the following example:
<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
<H1>
<IMG SRC="fish2000.gif">
</H1>
</BODY>
</HTML>
Indenting the tags like this makes it easier to spot certain types of syntax errors.
After you tell HTML Scan how to treat the error, the bad tag will be marked in the Tags list with one of the following error codes:
E: This is used to indicate a general error.R: This indicates that a bad tag was replaced by the correct tag. For example, if you accidentally typed </H@> in your HTML code then you will be able to tell HTML Scan that you meant to type </H2>. This will allow HTML Scan to continue scanning your code without generating other error messages from that same bad tag.
S: An easy syntax error to make is to close off a pair of tags in the wrong order, such as: <B><I>hello</B></I>. When HTML Scan encounters this error, you will be able to tell HTML Scan to internally "swap" the two end tags, and they will be marked with an S in the Tags list.
1, 2, 3, etc.: If an end tag such as </H2> is missing then you will be given the opportunity to insert it, and the start and end tags will then be marked in the Tags list with the same number in order to help you locate the matching pairs in the list.
The HTML Scan program will not modify your source code in any way.
Consider visiting my other websites!
You'll find:
Dave Root
Send e-mail to: dave@Layhands.com