Professional Documents
Culture Documents
HTML Practical File
HTML Practical File
HTML Practical File
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Table</title>
</head>
<body>
<hr>
<hr>
<thead>
<tr>
</tr>
<tr>
<td>R Level</td>
<td>U Level</td>
<td>A Level</td>
<td>Total Marks</td>
</tr>
</thead>
<tr >
<td>I</td>
<td>2</td>
<td>4</td>
<td>4</td>
<td>0</td>
<td>8</td>
</tr>
<td>II</td>
<td>6</td>
<td>0</td>
<td>2</td>
<td>6</td>
<td>8</td>
</tr>
<td>III</td>
<td>6</td>
<td>4</td>
<td>8</td>
<td>0</td>
<td>12</td>
</tr>
<td>IV</td>
<td>8</td>
<td>2</td>
<td>4</td>
<td>8</td>
<td>14</td>
</tr>
<td>V</td>
<td>10</td>
<td>4</td>
<td>4</td>
<td>6</td>
<td>14</td>
</tr>
<tr>
<td >VI</td>
<td>10</td>
<td>4</td>
<td>4</td>
<td>6</td>
<td>16</td>
</tr>
<tfooter>
<tr>
<th></th>
<th>Total</th>
<th>42</th>
<th>18</th>
<th>26</th>
<th>26</th>
<th>70</th>
</tr>
</tfooter>
</table>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
(a)Inline
(b)Embedded
(c)External
-->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Css</title>
</head>
<style>
h1 {
color: red;
text-align: center;
p{
font-size: 20px;
color: purple;
text-align: center;
</style>
<body>
<hr>
<p style="font-size: 18px; color: green; text-align:center;">This paragraph has an inline style applied.</p>
</body>
</html>
</body>
</html>
External Css:-
.head {
color: orange;
text-align: center;
.para {
font-size: 22px;
color: brown;
text-align: center;
}
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 3:-Create an internal hyperlink from the top of your page to the bottom of the same page.-->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 20px;
text-align: center;
#bottomSection {
background-color: #f0f0f0;
padding: 20px;
display: inline-block;
text-align: left;
a{
text-decoration: none;
color: blue;
</style>
</head>
<body>
<hr>
<hr>
<p>
Graphic Era University is an Indian private deemed university located in Clement Town, Dehradun,<br>
Uttarakhand. It was founded by Dr. Kamal Ghanshala in 1993. In 2008, the then-institute was accorded<br>
the status of deemed university. In 2022, the university was accredited by the NAAC with Grade A+.
</p>
<div id="bottomSection">
</div>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 4:-Write an html code to create a website of your own (only front page of a website).-->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 0;
background-color: #f8f8f8;
color: #333;
header {
background-color: #007bff;
color: #fff;
text-align: center;
padding: 20px;
nav {
background-color: #333;
text-align: center;
padding: 10px;
nav a {
color: #fff;
text-decoration: none;
margin: 0 10px;
}
main {
padding: 20px;
.intro {
text-align: center;
.intro p {
font-size: 18px;
line-height: 1.6;
.intro button {
background-color: #007bff;
color: #fff;
border: none;
font-size: 16px;
cursor: pointer;
.key-features {
margin-top: 20px;
.key-features h2 {
color: #007bff;
.key-features ul {
list-style-type: none;
padding: 0;
}
.key-features li {
margin-bottom: 10px;
.smartphone {
margin-top: 20px;
text-align: center;
.smartphone img {
max-width: 100%;
height: auto;
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
</style>
</head>
<body>
<hr>
<hr>
<header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Capabilities</a>
<a href="#">Contact</a>
</nav>
<main>
<section class="intro">
<p>We are Tech X Company, your partner in innovative technology solutions. Explore our capabilities and
discover how we can transform your business with cutting-edge technologies.</p>
<button>Learn More</button>
</section>
<section class="key-features">
<h2>Key Features</h2>
<ul>
<li>Text Generation: We provide advanced text generation services for various applications.</li>
<li>Question Answering: Get informative answers to your questions, no matter how complex.</li>
<li>Code Completion: Enhance your coding experience with our intelligent code completion
solutions.</li>
</ul>
</section>
<section class="smartphone">
</section>
</main>
<footer>
</footer>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 5:-Write an html code to divide the page into two columns using div tag with proper margin
and border properties. One column should display the login page and other should display the text and
image.-->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style>
body{
background-color: whitesmoke;
.main{
display: flex;
justify-content: center;
align-items: center;
text-align: center;
margin-top: 100px;
.first{
height: 250px;
width: 400px;
.second{
margin-left: 50px;
background-color: white;
height: 250px;
width: 400px;
input,button{
margin-top: 10px;
margin-top: 20px;
img{
height: 140px;
width: 150px;
</style>
<body>
<hr>
<hr>
<div class="main">
<div class="first">
<h2>Photography</h2>
<img src="../Project/images/fire.jpg">
</div>
</div>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 6:- Following target names are reserved while using <A href> . Explain each by designing
single HTML document.
• _blank
• _self
• _parent
• _top -->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
flex-direction: column;
.container {
text-align: center;
margin-top: 20px;
a{
display: block;
margin: 10px;
h4 {
margin-bottom: 10px;
hr {
height: 2px;
border: none;
background-color: #ccc;
width: 50%;
</style>
</head>
<body>
<hr>
<hr>
<div class="container">
</div>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
(i) Div (ii) Span (iii) Pre (iv)Marquee (v)Footer (vi)Header (vii)Nav (viii)Article (ix)Section -->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 20px;
padding: 10px;
text-align: center;
pre {
background-color: #f0f0f0;
overflow: auto;
marquee {
color: #ff0000;
font-weight: bold;
white-space: nowrap;
span {
display: block;
margin: 0 auto;
text-align: center;
</style>
</head>
<body>
<hr>
<hr>
<header>
<h1>This is a Header</h1>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<section>
<h2>Section Title</h2>
<article>
<h3>Article Title</h3>
</article>
</section>
<div>
<h2>Div Container</h2>
</div>
<pre>
line breaks.
</pre>
<footer>
<p>This is a Footer</p>
</footer>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 10:-Write an html code for the below login page: Using internal CSS. -->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,
0,0" />
<title>Login Page</title>
</head>
<style>
body {
margin: 0;
justify-content: center;
align-items: center;
h4{
align-items: center;
.body{
height: 500px;
width: 500px;
margin-top: 30px;
margin-left: 500px;
margin-bottom: 50px;
background-color: aquamarine;
border: 3px solid black;
text-align: center;
.main{
height: 280px;
width: 400px;
margin-left: 50px;
border: white;
background-color:white;
margin-top: 80px;
.user,.pass,.logine{
margin-top: 20px;
border: white;
margin-left: 10px;
button{
margin-left: 10px;
background-color: antiquewhite;
.foot{
text-align: center;
margin-top: 30px;
background-color:lightblue;
.login{
display: flex;
border: black;
.f{
margin-left: 200px;
}
</style>
<body>
<hr>
<hr>
<div class="body">
<div class="main">
<h4 >LOGIN</h4><hr>
<div class="user">
username: <br>
<span class="material-symbols-outlined">
contacts_product
</div><hr>
<div class="pass">
password: <br>
<span class="material-symbols-outlined">
lock_person
</span><input type="password"placeholder="password">
</div>
<hr>
</div>
<P class="foot">ErrorPage|SuccessFullLogin</P>
</div>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 11:-Write an HTML code to demonstrate the use of hover selector with <a> tag using CSS.->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
.center-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin-bottom: 100px;
a{
display: inline-block;
text-decoration: none;
color: #333;
}
a:hover {
background-color: #333;
color: #fff;
</style>
</head>
<body>
<hr>
<hr>
<div class="center-container">
</div>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Without Hover: -
With Hover: -
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 12:-Write an HTML code to display a drop down menu (list) on on mouse-hover event (using
hover selector) on the web page like:-->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dropdown</title>
<style>
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
.container {
text-align: center;
.header {
text-align: center;
.navbar {
display: flex;
align-items: center;
justify-content: center;
background-color: #f0f0f0;
.nav-item {
margin: 0 10px;
.dropdown {
position: relative;
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
z-index: 1;
.dropdown:hover .dropdown-content {
display: block;
.dropdown-content a {
color: black;
text-decoration: none;
display: block;
.dropdown-content a:hover {
background-color: #f1f1f1;
}
.sliding-text-container {
margin-top: 20px;
</style>
</head>
<body>
<div class="container">
<hr>
<hr>
<div class="navbar">
<div class="nav-item">Home</div>
<div class="nav-item">About</div>
<div class="dropdown">
<div class="nav-item">Products</div>
<div class="dropdown-content">
<a href="#">Smartphone</a>
<a href="#">Laptop</a>
<a href="#">Smartwatch</a>
</div>
</div>
</div>
<div class="sliding-text-container">
<p class="sliding-text" id="slide">Welcome to our official page...! Thank you for visiting us..!</p>
</div>
</div>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Without Hover: -
Hover: -
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 13:-Write an HTML code to design a web page similar to “Facebook.com” front page.-->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style>
body{
background-color: whitesmoke;
.main{
display: flex;
justify-content: center;
align-items: center;
text-align: center;
margin-top: 150px;
.second{
margin-left: 50px;
background-color: white;
height: 250px;
width: 400px;
input,button{
margin-top: 10px;
margin-top: 20px;
}
</style>
<body>
<hr>
<hr>
<div class="main">
<div class="first">
</div>
<div class="second">
</div>
</div>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
Code:-
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,
0,0" />
</head>
<style>
.main{
text-align: center;
height: 570px;
width: 500px;
margin-left: 500px;
h2{
text-align: center;
color: red;
</style>
<body>
<hr>
<hr>
<form action="/action_page.php" method="post" class="main">
<div>
<span class="material-symbols-outlined">
person_apron
</span>
<label for="title">Title:</label>
<option value="Mr">Mr.</option>
<option value="Mrs">Mrs.</option>
<option value="Ms">Ms.</option>
</select>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
<label for="city">City:</label>
</div>
<div>
<label for="state">State:</label>
<div>
<label for="zip">Zip:</label>
</div>
<div>
</div>
<div>
<label for="email">E-mail:</label>
</div>
<div>
<label for="mobile">Mobile:</label>
</div>
<div>
<label>Languages known:</label><br>
<label for="language1">Gujarati</label><br>
<label for="language3">English</label><br>
<label for="language4">Marathi</label><br>
</div>
<div>
</div>
<div class="form-actions">
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</div>
</form>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.list-container {
text-align: center;
ul, ol, dl {
display: inline-block;
margin: 0;
padding: 0;
text-align: left;
li {
margin-bottom: 5px;
</style>
</head>
<body>
<hr>
<div class="list-container">
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</div>
<div class="list-container">
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
</div>
<div class="list-container">
<dl>
<dt>HTML</dt>
<dt>CSS</dt>
<dt>JSON</dt>
</dl>
</div>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 8:-Write an HTML code to demonstrate the use of audio and video tags using HTML 5.-->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<style>
body{
text-align: center;
justify-content: center; }
</style>
<body> <hr>
<h2>Audio</h2>
<audio controls>
</audio>
<h2>Video</h2>
</video>
</body> </html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
<!--Practical 9:-Write an Html code to illustrate the use of <frame>, <frameset>, <iframe>formatting tags
and <img>.-->
Code:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<style>
body{
align-items: center;
justify-content: center;
} div{
margin-left: 450px;
margin-top: 50px; }
</style>
<body> <hr>
<div>
</div>
</body>
</html>
Name-Tushar Pandey
Course- BCA Sem- 4
Section:-D2 Roll No- 63
University Roll No-2222101
Subject- Web Technologies
OUTPUT