Header Ads

Write html code to develop a webpage having two frames that divide the webpage into two equal rows and then divide the row into equal columns fill each frame with a different background color.

HTML CODE :

frame.html

This file create the frames 

<html>
    <frameset rows="50%,50%" frameborder="yes" border="3" bordercolor="#F49586">
        <frameset cols="50%,50%" frameborder="yes" border="3" bordercolor="#F49586">
            <frame src="box1.html"></frame>
            <frame src="box2.html"></frame>
        </frameset>

        <frameset cols="50%,50%" frameborder="yes" border="3" bordercolor="#F49586">
            <frame src="box3.html"></frame>
            <frame src="box4.html"></frame>
        </frameset>
       
    </frameset>
</html>

box1.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body bgcolor="#ED&D60">
   
</body>
</html>


box2.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body bgcolor="#85DCB">
   
</body>
</html>


box3.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body bgcolor="#E8A87C">
   
</body>
</html>


box4.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body bgcolor="#C38D9E">
   
</body>
</html>


OUTPUT :




Post a Comment

0 Comments