HTML BasicsHere are some of the common problems that you can avoid:
<P> as 'separator' rather than
container.
<ul>
<li><h1>Something I want Big</h1>
<li><h1>Something else I want Big</h1>
<li><h6>Something I want Small</h6>
</ul>
<h2>Chapter 2 <h3></h2>Section1</h2>
<p>,
<address>,
<blockquote>, <address>, or a
List Item. In earlier versions of HTML, the following was an approved
usage, but is now illegal:
<h2>raspail test</h2>
A method of determining the presence of rosin size
in paper. One drop of a strong solution of
ordinary sugar is applied to the sheet, the excess
being blotted after one minute. A drop of
concentrated sulfuric acid is then applied, which
turns the area treated a bright red color if rosin
is present in the paper.
<h2>The</h2>
<h1>History</h1>
<h5>of</h5>
<h3>The</h3>
<h1>World</h1>
Some exceptions to this general rule are unobjectionable
Ü represents the
character Ü while ü represents
ü.
Case is also significant in attribute values, especially in the case of URLs:
<img src="mybeautifulface.gif">
could be written
<IMG SRC="mybeautifulface.gif">
but neither would mean the same thing as
<img src="MyBeautifulFace.gif">
Illegal: <em><h2>The Question of Journals</h2></em>
Legal: <h2><em>The Question of Journals</em></h2>
Note that both examples violate an important principle: markup should be, whenever possible, indicate the structure or meaning of the text, not it's visual presentation. Presentation is the purview of the user, content of the author.
<body> elements inside the
<head> and vice versa.
<Title>,
for example, must appear in the <head> and may never
appear in the <body>. For <P> the
situation is reversed. It may appear only in the <body>
<center> will cause your
document to be nonconforming. Similarly, the <xmp> is
no longer part of HTML; examplary text is now marked up using
<pre>. The <u> (underline) element
has also been removed from HTML.
href instead of src
href attribute is used to identify the URL of
the image. When using <img> to insert an inline image, the
src is used.