Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with XHTML and targeting frames

Status
Not open for further replies.

Zemus

Technical User
May 26, 2004
1
US
Oh man, I've been trying to figure this out for hours. And I'll be honest, I'm not very good at this lol. I have a website that I just converted to XHTML, everything works great, even the frames. But my side menu frame won't convert to XHTML Strict!

This is a sample of my page,

<p><a href="main.html" target="right">Home Page</a></p>
<p><a href="aboutus.html" target="right">About Us</a></p>
<p><a href="mission.html" target="right">Mission</a></p>
<p><a href="members.html" target="right">Members</a></p>
<p><a href="links.html" target="right">Links</a></p>

It works perfectly in XHTML Transitional...but I need to convert it to Strict...and it won't validate in Strict because I guess XHTML Strict does not accept the target thing. I have no idea what I'm doing...please, someone, anyone, help a dummy out. Thanks.

 
As far as I know you should use the frameset doctype when using frames:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">[/URL]
In XHTML 1.0 Strict there is no target attribute for links because there is no need to target links anywhere in a non-framed page. That is why you have a special doctype for frames.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top