HTML frameset problem
Today I have tried HTML frameset in one of my site under construction. I put the whole frameset tag in the the html body. The problem is that the code is not running the frameset part. I go to w3schools again where I had learnt HTML two years ago. And saw the HTML frameset example. They have no body or head in their code. They have only html tag, frameset tag and frame tag. I copied their code and run in my local host, it ran. I observed their code again and again. Finally I got that frameset tag should not be inside body tag. It is a separate tag just like body or head. That is why my code was not running. When I put frameset tag beside head tag and inside html tag it ran.
So If you use frameset tag, try to follow the format.
<html>
<head><title>Mew</title></head>
<frameset cols=”50%,50%”>
<frame src=”a.htm”>
<frame src=”b.htm”>
</frameset>
</html>
You do not need a body tag here, because body tags are defined already in the frame source. This was my fault: I put frameset inside body tag.
