Log in

View Full Version : xhtml strict target name and iframes?



vieya
08-27-2009, 06:21 PM
is there any codes to replace iframes the target attribute and name?

for example

<a href="blah.html" target="main">asfda</a>
I can't use that anymore no more target and I also can't use this:

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

coothead
08-27-2009, 07:56 PM
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...


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