Hi to all,

I am a newly programmer on html. Right now I'm working on with a simple web pages. And I got some errors in showing the target on frame 2 with a link form the frame 1. I would to know more about on how to use the frameset syntax for html.


Please help me with this. Thanks...:)

Hi,

here's a valid frameset document sample:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/css" href="#css_level21" media="screen"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html id="xhtml10F" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Window-Target" content="_top" />
<meta http-equiv="imagetoolbar" content="0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title>Frameset Template Sample : XHTML 1.0 Frameset-DTD</title>
</head>
<frameset id="MainFrame" cols="50%, 50%">

<!-- LEFT FRAME -->
<frame id="FrameLeft" name="FrameLeft" scrolling="no" marginwidth="1" marginheight="5" src="./frame1.html" />

<!-- RIGHT FRAME -->
<frame id="FrameRight" name="FrameRight" scrolling="no" marginwidth="1" marginheight="5" src="./frame2.html" />

<noframes>
<body>
<p>This site requires a browser that support frames.</p>
</body>
</noframes>
</frameset>
</html>

-essential

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.