WT Prac 5-1
WT Prac 5-1
WT Prac 5-1
PRACTICAL : 5
AIM :
(1)
HTML :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>replit</title>
</head>
<body>
<header>
</header>
<nav>
<div class="text">
<ul>
<li>home</li>
<li>about</li>
</ul>
</div>
</nav>
<script src="script.js"></script>
</body>
</html>
CSS :
html {
height: 100%;
width: 100%;
:root{
--backgroundcolour :grey;
--colour:black;
--height: 23vh;
--content:center;
--text:center;
.container{
background-color: var(--backgroundcolour);
color: var(--colour);
height: var(--height);
justify-content: var(--content);
text-align: var(--text);
.text{
background-color: lightblue;
.a{
background-color: var(--backgroundcolour);
color: var(--colour);
height: var(--height);
text-align: var(--text);
justify-content: var(--content);
(2)
HTML :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>replit</title>
</head>
<body>
<header>
<nav>
<div>
<ul class="text">
<li>home</li>
<li>about</li>
</ul>
</div>
</nav>
</header>
<p class="a">
Nature provides us with several delicacies to enjoy and is our life support system. Our basic needs like food,
shelter, water and air are all the gifts from nature. Humans have a strong connection and interrelation with nature.
Escaping away in the nature heals the mind and body and soothes our soul.
</p>
<script src="script.js"></script>
</body>
</html>
CSS :
html {
height: 100%;
width: 100%;
.container{
background-color: lightblue;
font-style: bold;
justify-content: center;
display: flex;
.text{
display: inline;
list-style:none;
.text:hover{
color: blue;
.text:active{
font-weight: bold;
color: red;
.a::first-line{
color:red;
font-weight: bold;
(3)
HTML :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Responsive Design</title>
<style>
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--padding: 20px;
--font-size: 16px;
.container {
padding: var(--padding);
background-color: var(--primary-color);
color: white;
text-align: center;
margin: 20px;
.text {
font-size: var(--font-size);
/* Media Queries */
:root {
--padding: 40px;
--font-size: 18px;
:root {
--padding: 60px;
--font-size: 20px;
</style>
</head>
<body>
<div class="container">
</div>
</body>
</html>
(4)
HTML :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="container">
<h2>Login</h2>
<form>
<button type="submit">Login</button>
</form>
</div>
<div class="container">
<h2>Register</h2>
<form>
<button type="submit">Register</button>
</form>
</div>
</body>
</html>
CSS :
body {
background-color: #f4f4f4;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
.container {
background-color: white;
SUBJECT NAME : WEB TECHNOLOGY
NAME : JENSI M TAGADIYA ENROLLMENT NO : ET22BTIT130
padding: 20px;
border-radius: 10px;
max-width: 400px;
width: 100%;
h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
width: 100%;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
button {
width: 100%;
padding: 10px;
background-color: #3498db;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
button:hover {
background-color: #2980b9;
.link {
display: block;
text-align: center;
margin-top: 20px;
color: #3498db;
text-decoration: none;
.link:hover {
text-decoration: underline;
(5)
HTML :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<p>
<img
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTWI7clES9W75CGV-Bcxj248JnTz50rmHZ
S0Q&s">
<button>search</button>
</p>
</div>
<div class="column">
<div class="col-sm-4">
<h3>box 1</h3>
<img
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSHsnPrnr2ybgZ0qb3PJhAP0iLIv7pjZnjO2
A&s">
</div>
<div class="col-sm-4">
<h3>box 2</h3>
<img
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRZioUHyzkKfdltTxHwJqIaKzqmrXrNZSznt
Q&s">
</div>
<div class="col-sm-4">
<h3>box 3</h3>
<img
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS0RVEGobDYowIrBFvRwbDRuZGG05Yv
WZZMHA&s">
</div>
</div>
</div>
</body>
</html>