Re: some hr questions

According to the HTML DTD HR is
a block element, and not an inline element. Block elements are not allowed
inside P, so I would say the Mozilla people are reading the spec correctly.



On Fri, 18 Oct 2002, John Russell wrote:

>Now using hr element as separator ... works as i
>expected in msie but not in other browsers .
>1]  is the hr element allowed within an address element
>       the groups contend that it cant be nested that way
>    but validator does not complain.
>2] the short test that i am adding does not do a line return before
>   the paragraph after hr element in address... is this a bug ???
>3 there are two lines (only spotted this when i made a darker shade
>   background ... top line is correct.... where does bottom one come from??
>    my assumption is that amaya sets different height than other browsers
>     do on the hr element  .
>test case is as follows
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
><style type="text/css">
>body {background:#d6e0cc}
>hr {color:khaki; margin:0px; padding:0px}
>hr.s {width:20px}
><title>test of hr</title>
><p>here is a <hr class="s"> short rule for test.<p>
>Here is a test of the hr tag<br>
>Resume normal programming now.  Why the double line
>and isn't hr a block element where it should start a new line
>  //
>John Russell, VE3LL@RAC.CA
> (2 L's as in LLAMA)
>check HTML at
>check CSS at
>check JavaScript at

Charles McCathieNevile  tel: +61 409 134 136
SWAD-E ------------ WAI
 21 Mitchell street, FOOTSCRAY Vic 3011, Australia  fax(fr): +33 4 92 38 78 22
 W3C, 2004 Route des Lucioles, 06902 Sophia Antipolis Cedex, France

Received on Friday, 18 October 2002 12:45:21 UTC