[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: layout of web pages



Philipp:

| Summary: no end tag required but discouraged for additional 
| white space (empty paragraph).

The end tag is _not_ discouraged. It is not _necessary_. The extra space
you get in Netscape when you have both start and end tags on P elements is
due to a serious bug in that browser.

What the specification says is that the following examples all should be
rendered as the same:

----------------------
   <P>
    Something.
   </P>
   <P>
    More.
----------------------
   <P>
    Something.
   <P>
    More.
----------------------
   <P>
    Something.
   </P>
   <P>
   <P>
    More.
----------------------

The special, and much discussed, rule that makes the third example
equivalent to the first two is that "empty paragraphs should be ignored".


Greetings,

Jacob

     ----------------------------------------------------------------------
     | Jacob Sparre Andersen  | Phone.: (int+45) 30 35 00 33              |
     | Tåsingegade 36, 3. tv. | Fax...: (int+45) 31 42 10 16              |
     | DK-2100 København Ø    | E-mail: sparre@cats.nbi.dk                |
     | Danmark                | WWW...: <URL:http://fys.ku.dk/%7Esparre/> |
     ----------------------------------------------------------------------


Reply to: