<div>
    A line of plain text.
    <p>A paragraph.</p>
    Another line of text.
</div>

Now a question, Is this actually valid??
I recently recieved some templates of another designer and this was
scattered all throughout the pages.

I went through and put <p> around them BUT is it valid??? Or is it a
case of in Transitional DTD its ok but Strict DTD it is not??

Why not to check it? From HTML 4.01 Strict DTD:

Let's see DIV:
<!ELEMENT DIV - - (%flow;)*            -- generic language/style container -->

Ok, now let's look up what is %flow:

<!ENTITY % flow "%block; | %inline;">

Checking %inline:
<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">

Just to make sure - %special:

<!ENTITY % special
  "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">

Woohoo, A is here. Case closed.


Regards,
Rimantas
--
http://rimantas.com/


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to