</A> tag at the end of a link you've created. If you
do this your entire document from that point on turns into a link
(normally blue underlined text). Similarly, leaving out a </B>
tag at the end of bolded text will result in everything from
there on appearing bolded.
<HTML>, <HEAD>,
<TITLE>, or <BODY>). Omitting one of these
(especially the end one, such as </HEAD>) can cause very strange
things to happen to your document, such as graphics refusing to
appear, etc. By the way, misspelling a tag is the same as leaving
it out, since HTML will ignore any tag it doesn't understand
(such as a "<HAED>" tag).
<) to
the first end bracket it finds (>) is part of your tag. Since the
contents of a tag don't display as text on your page, this can
cause big chunks of text to unexpectedly disappear. Similarly,
leaving out quote marks when required (such as
the graphics filename in an IMG tag) can result in the browser
trying to guess just where the filename ends and other HTML
information begins. Again, the result can be disappearing text or
graphics.
SRC="filename" attribute into a heading tag) will usually just
result in the inappropriate information being ignored; sometimes
the results can be unpredictable, though, depending on your
browser. One common mistake is putting the ALIGN attribute into
an image tag (such as <IMG SRC="mygraphic.gif" ALIGN="CENTER">
in order to center it. Since ALIGN="TOP" and ALIGN="BOTTOM"
are perfectly legal in an <IMG> tag, it's
easy to assume that ALIGN="CENTER"
should be too. Unfortunately, it's not, and trying to center your
graphic this way can be very frustrating as you keep rechecking
your code looking for some other mistake. The only reliable way to avoid this is to
acquire the necessary encyclopedic knowledge of which attributes are legal in
which tags. (Or buy a good reference manual.)
<B> and </B>) you should always nest them, not overlap
them. What this means is that if you want to put a pair of tags
inside some other pair, this is OK:<A HREF="http://www.a.place"><B>Jump here</B></A>
<A HREF="http://www.a.place"><B>Jump here</A></B>
<HEAD>
<TITLE>
My title
</HEAD>
</TITLE>
-> Page
Source (in Navigator) or View -> Source (in Internet Explorer)
your browser will show you your HTML code with any mistakes
highlighted (although the real problem may be earlier in your
code). This can often allow you to identify problems that are
otherwise hard to spot.
|
|
|
|
| |
|
|
|
| ||
|
This page last updated 2/5/2010. | |||||