Results 1 to 2 of 2

Thread: xhtml strict target name and iframes?

  1. #1
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default xhtml strict target name and iframes?

    is there any codes to replace iframes the target attribute and name?

    for example
    Code:
    <a href="blah.html" target="main">asfda</a>
    I can't use that anymore no more target and I also can't use this:
    Code:
    <iframe name=main src="fadfa"> no iframe support </iframe>
    any replacements for those and are they ever going to add something like these codes back?

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there vieya,

    If you wish to use the target attribute or the iframe element then you must use an appropriate dtd.
    In this case it must be Transitional...
    Code:
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="language" content="english" /> 
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript"/>
    
    <title></title>
    
    </head>
    <body>
    
    <div>
    <a href="blah.html" target="main">asfda</a>
    </div>
    
    <div>
    <iframe name="main" src="fadfa">no iframe support</iframe>
    </div>
    
    </body>
    </html>
    
    coothead

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •