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
"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