Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Tags > Re: <h1>
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 373 of 439
Post > Topic >>

Re: <h1>

by "Jukka K. Korpela" <jkorpela@[EMAIL PROTECTED] > Oct 15, 2005 at 04:10 PM

"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




 6 Posts in Topic:

"Frank Ehrlacher&quo  2005-10-15 14:08:56 
Re:

"Jukka K. Korpela&qu  2005-10-15 16:10:23 
Re:

Sledge <Spam_Me@[EMAIL  2005-10-16 00:32:33 
Re:

"Jukka K. Korpela&qu  2005-10-16 20:32:49 
Re:

Skot Njordulf <necrowu  2005-12-05 06:05:25 
Re:

Todd Brown <tbrown@[EM  2005-10-20 01:49:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 5:55:46 CDT 2008.