On 8/6/06, Patrick H. Lauke <[EMAIL PROTECTED]> wrote:
Shlomi Asaf wrote:
> i just been informed that P & Hn Elements are Inline Element. How Come?
> how can those elements be inline, and the user-agent render them as
> Block-level elements?
>
> http://www.w3.org/TR/html401/struct/global.html#edef-H1
> http://www.w3.org/TR/html4/struct/text.html#edef-P
>
> this information shocked the ground im standing on.
You wouldn't be shocked if you read the DTD properly. I'm assuming that
this is what you're referring to:
<!ELEMENT (%heading;) - - (%inline;)* -- heading -->
<!ELEMENT P - O (%inline;)* -- paragraph -->
the (%inline;)* part refers to the type of elements that the H and P
*are allowed to contain*, and does NOT refer to the H and P themselves.
http://www.w3.org/TR/html401/sgml/dtd.html#block defines what elements
are block level, and you'll see that %headings is listed there. So
unshock yourself, all is as it should be...
P
--
Patrick H. Lauke
__________________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__________________________________________________________
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__________________________________________________________
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
--
visit my blog: http://www.webcssdesign.34sp.com/
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
