"Frank Ehrlacher" <FrankEhrlacher@[EMAIL PROTECTED]
> wrote:
> If I "forget" the </h1>-tag, html produces just a line break.
HTML is data. It does not produce anything. Data does not do things,
except
in Star Trek.
> If I add the </h1> I get an empty line.
There's no "if" about it. The end tag is required.
You can affect spacing by using CSS, such as
<style type="text/css">
h1 { margin: 0.8em 0 0 0; }
h2 { margin: 0.6em 0 0 0; }
</style>
This still leaves some space between h1 and h2. There are ways to deal
with
this (in CSS, not HTML), but do you really need to write a first-level
heading immediately followed by a second-level heading?
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


|