AlleyCat
Well-Known Member
- Joined
- Jun 18, 2005
- Messages
- 18,779
- Reaction score
- 2,287
Hey .. for homework, I had to create some XHTML code. I've validated it and it comes back with no errors, but when I try to view it, nothing shows up ... Here's the first part I had to create:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Animals</title>
<base target="CONTENT" />
</head>
<frameset cols="20%,*">
<frame src="Ch02XHTMLEX03b.html" />
<frame src="elephant.jpg" name="animal_picture" />
</frameset>
</html>
Then, for part 2, I had to do:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Animals</title>
<base target="rightframe" />
</head>
<frameset cols="20%,*">
<p><a href="Elephant.jpg">Elephant</a><br />
<a href="gazelle.jpg">Gazelle</a><br />
<a href="giraffe.jpg">Giraffe</a><br />
<a href="lion.jpg">Lion</a><br />
<a href="polarbear.jpg">Polar Bear</a><br />
<a href="rhino.jpg">Rhino</a><br />
<a href="tiger.jpg">Tiger</a><br />
<a href="zebra.jpg">Zebra</a></p>
</frameset>
</html>
Then, I'm told to "open" (in a web browser) the first part, and I'm supposed to see a list of links on the left side (as typed in part 2). However, my screen's blank.
My teacher warned us that the book was full of typos that weren't caught before it went to print. However, she hasn't clued us in on the typos. I've done research online and corrected things, and now when I validate it, it comes back with no errors (it came back with like 15 errors when I typed it in exactly as is from the book, so apparently I am correcting the errors), however, I'm still not seeing the links as I should. Any ideas why?
Thanks!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Animals</title>
<base target="CONTENT" />
</head>
<frameset cols="20%,*">
<frame src="Ch02XHTMLEX03b.html" />
<frame src="elephant.jpg" name="animal_picture" />
</frameset>
</html>
Then, for part 2, I had to do:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Animals</title>
<base target="rightframe" />
</head>
<frameset cols="20%,*">
<p><a href="Elephant.jpg">Elephant</a><br />
<a href="gazelle.jpg">Gazelle</a><br />
<a href="giraffe.jpg">Giraffe</a><br />
<a href="lion.jpg">Lion</a><br />
<a href="polarbear.jpg">Polar Bear</a><br />
<a href="rhino.jpg">Rhino</a><br />
<a href="tiger.jpg">Tiger</a><br />
<a href="zebra.jpg">Zebra</a></p>
</frameset>
</html>
Then, I'm told to "open" (in a web browser) the first part, and I'm supposed to see a list of links on the left side (as typed in part 2). However, my screen's blank.
My teacher warned us that the book was full of typos that weren't caught before it went to print. However, she hasn't clued us in on the typos. I've done research online and corrected things, and now when I validate it, it comes back with no errors (it came back with like 15 errors when I typed it in exactly as is from the book, so apparently I am correcting the errors), however, I'm still not seeing the links as I should. Any ideas why?
Thanks!

