Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Sat, 18 Feb 2006 23:16:27 -0800,    group: microsoft.public.inetsdk.programming.html_objmodel        back       


<div> cannot be nested inside <span> ?   
Hello,

I tried the following:

<span id="Level1">
  <div id="Level2">...</div>
</span>

But my HTML validation (XHTML 1.0 Transitional) say that I cannot nest div 
inside span.
Anyone know why?
Does the standard say that?
I couldn't find any mentioning of this on the web.

Thanks,
Clement
date: Sat, 18 Feb 2006 23:16:27 -0800   author:   Clement

Re: <div> cannot be nested inside <span> ?   
"Clement"  wrote in message
news:E15F4F0C-1711-4343-B68B-2B7E291D9C12@microsoft.com
> I tried the following:
>
> <span id="Level1">
>  <div id="Level2">...</div>
> </span>
>
> But my HTML validation (XHTML 1.0 Transitional) say that I cannot
> nest div inside span.
> Anyone know why?

Because XHTML standard says so. You can't put any tag inside any other 
tag and expect it to work. In particular, it does not make sense to put 
block tags inside inline tags.

> Does the standard say that?
> I couldn't find any mentioning of this on the web.

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Transitional

-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Sun, 19 Feb 2006 10:08:58 -0500   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us