Can XHTML nest more XHTML?
        Posted  
        
            by zneak
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by zneak
        
        
        
        Published on 2010-05-09T18:06:02Z
        Indexed on 
            2010/05/09
            18:08 UTC
        
        
        Read the original article
        Hit count: 905
        
It's legal to nest SVG documents inside XHTML documents; but is it legal to nest XHTML documents inside other XHTML documents in the same fashion?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Sup</title>
</head>
<body>
    <h1>Hello World!</h1>
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <title>Nested document</title>
        </head>
        <body>
            <p>This is a sample</p>
        </body>
    </html>
</body>
</html>
© Stack Overflow or respective owner