Quick Question on <Hn> and <HR>

Paul (Paul.Wain@brunel.ac.uk)
Thu, 28 Apr 1994 11:28:52 +0100 (BST)


Okay,

Im sitting here writing up a spec into HTML (by hand of course :) and
one thought just struck me, and looking at the DTD I cant decide if I am
right or wrong.

Is the following valid HTML?

<HEAD>
<TITLE>
A title
</TITLE>
</HEAD>
<BODY>
<H1>
some text
<HR>
</H1>
</BODY>

That is, can I justifiably use the <HR> tag inside a <H#> tag? (#=1..6)
Im thinking not which is a shame because the specification say that
there needs to be a complete clear line between a </H#> tag and the next
line of whatever. This means that you cant get the <HR> right up close
under the text which is sometimes quite desirable (Like in this case for
example....)

Any ideas? Am I wrong in thinking it is invalid?

Paul

.-------------------------------------------------------------------------.
|_______Paul_S._Wain,_(X.500_Project_Engineer_and_WWW/HTTP_chappie),______|
| Computer Centre, Brunel University, Uxbridge, Middx., UB8 3PH, ENGLAND. |
|___VOICE:_+44_895_274000_extn_2391_______EMAIL: Paul.Wain@brunel.ac.uk __|
| http://http2.brunel.ac.uk:8080/paul/ |
`-------------------------------------------------------------------------'