Jump to content

Recommended Posts

Good Morning, I am building a website using HTML frames. However, it has to be designed as an XHTML 1.0 strict document. All of my pages have been validated except my link page because of the "target" attribute. I was told by someone in the HTML forum that I might want to ask a JAVA expert on how to use Java to link my pages. Can someone help me?Here is my HTML code for my links page:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><!-- New Perspectives on HTML and XHTML Tutorial 9 Tutorial Case 4 List of links Author: Sherrie Raymond-Galatas Date: 11-24-2007 Filename: maxlinks.htm Supporting files: drock048.jpg--><title>Maxwell Links</title><!--Adding inline style in order to add attributes--><style type="text/css">body {background-image: url(drock048.jpg); background-repeat: repeat-y; font-family: sans-serif; color: white}#links {color: white; text-decoration: none; font-size: 12pt}#links a {color: white; text-decoration: none; display: block}#links a:hover {color: white; background-color: rgb(51,102,153); border: 3px outset white}</style></head><body><p id="links"><a href="maxwell.htm" target="pages">Astronomy</a><br /><a href="chem.htm" target="pages">Chemistry</a><br /><a href="elect.htm" target="pages">Electronics</a><br /><a href="eng.htm" target="pages">Engineering</a><br/><a href="physics.htm" target="pages">Physics</a><br/><a href="specials.htm" target="pages">Monthly Specials</a><br/><a href="http://www.beaucoupgifts.com"><img src="beaucoup.gif" alt="Beaucoupgifts.com" width="115" height="157" style="border:0" /></a><br/><a href="http://www.beautipage.com/beaucoupgifts/"><img src="bclogo1.gif" alt="BeautiControl" width="115" height="39" style="border:0" /></a></p><p><img src="verisign_circle.gif" alt="" /></p><p><img src="shippinglogo5.gif" alt="Ship United States Post Office and UPS"/></p><p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a> </p></body></html>
Thanks :)
Link to post
Share on other sites

Java and Javascript are different languages, it was Javascript the person answering in the HTML forum was referring to. However, the other answers in your original thread are more useful to you. Your DTD shouldn't be strict, it should be frameset. But, as already mentioned, if at all possible avoid the temptation to use frames all together.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...