|
Posted by John Dunlop on 10/30/06 08:51
kosanovic@gmail.com:
> Logicaly I would never figure out because to me it makes a perfect
> sense that in your paragraph you might have a list.
I would agree.
> And the w3c Validator has given me the misleading error message
> (I could say it is a bug, usually they even say fine suggestions in
> the error message).
I don't find the error message misleading. P's content model in the
DTD you are validating against does not permit ULs, so the UL
implicitly ends the paragraph, leaving a P end-tag with no
corresponding paragraph. That is an error in your markup, not a bug in
the validator.
> By the way, no, I didn't put the list because of the bullet sign I
> actually removed the bullet sign in CSS. I just wanted to list some
> things and I thought it would be best to describe it as a list.
I would agree, but HTML offers no way to do that.
Visually, you could style paragraphs with a text-indent and style
paragraphs that should, structurally, be continuations of the previous
paragraph with no indent. For example,
<P>foo</P>
<UL>
<LI>item 1</LI>
<LI>item 2</LI>
</UL>
<P class="continue">bar</P>
with the following rule sets:
P { text-indent: 3em }
P.continue { text-indent: 0 }
More extreme, you could modify the DTD to allow ULs inside Ps. You
could then of course no longer truthfully claim conformance to HTML
since you would strictly speaking be using a proprietary markup
notation, although still serving your documents as text/html probably
isn't a cardinal sin.
--
Jock
Navigation:
[Reply to this message]
|