Forum Moderators: open
"Error: element [...] not allowed here; possible cause is an inline element containing a block-level element."
I used the "..." above to replace H1, P, and HR, each of which provoked this error message.
What does "inline element containing a block-level element" mean? (I imagine that DIV and TABLE are "block-level" and H1, P, and HR are "inline elements"?)
Is
<div> [or <table>]
<h1> [or <p> or <hr>]
invalid HTML? Why?
Thank you.
H1, P, and HR are Block Level Elements.
Block Level Elements [htmlhelp.com]
Inline Elements [htmlhelp.com]
Sounds like you have a block level element within an inline element and that is what is causing the validation problem.
<added> Yes. I had <h1> and <hr> and <p> between <font> and </font> in several places. When I corrected this, the page validated. </added>
<super added> Is <table bordercolor="#######"> valid in any version of HTML? I had believed that this was an exclusively Internet Explorer attribute? </super added>