Forum How do I...?

Footnote containing paragraphs

BorisK
Hi !

I'm writing using strict xhtml a technical book in which I need to have footnotes containing complementary explanations distributed over several paragraphs, including mathematical expressions.

How can I manage this ? Including paragraphs in a <span> </span> is of course not valid. Including <div> </div> in a paragraph is also not valid.

Great thanks for your help

Boris

PS : Please, don't mind possible mistakes in my writing. English is not my native language. :wink:
mikeday
If there is no element that can be inside a paragraph and contain blocks, then you have three choices:

(1) Use <div> instead of <p>, then you can nest whatever you like inside it.
(2) Don't validate against a strict DTD.
(3) Don't use footnotes that contain blocks.

Unfortunately I can't think of any other options, at this time.
BorisK
Thank you, Mike, for your answering.

Using a <div> is indeed the best way :

<div>main text main text main text <div class="footnote">

<p>text 1</p

<p>text 2</p>

...

</div>

following main text ; following main text </div>

It's quite valid in strict xhtml.

Thanks a lot !

Boris