Write HTML code to divide the screen into two horizontal sections and divide bottom section into two
vertical sections.
Answers
<frameset rows="*,*">
<frame src="TopSection.html">
<frame src="Bottom.html">
</frameset>
</html>
TopSection.html
<html>
<head>
<style>
body {background: gray;}
text-align: center;
vertical-align: middle ;
</style>
</head>
<body>
<h1> "INDIA IS BEAUTIFUL</h1>
</body>
</html>
Bottom.html
<html>
<head>
<style>
body {background: gray;}
</style>
</head>
<body>
INFORMATION TECHNOLOGY
</body>
</html>
Explanation:
<html>
<frameset rows="*,*">
<frame src="TopSection.html">
<frame src="Bottom.html">
</frameset>
</html>
TopSection.html
<html>
<head>
<style>
body {background: gray;}
text-align: center;
vertical-align: middle ;
</style>
</head>
<body>
<h1> "INDIA IS BEAUTIFUL</h1>
</body>
</html>
Bottom.html
<html>
<head>
<style>
body {background: gray;}
</style>
</head>
<body>
INFORMATION TECHNOLOGY
</body>
</html>