Professional Documents
Culture Documents
Pract1 Pooja
Pract1 Pooja
Rollno- 50
Section -C2
Code-
<!DOCTYPE html>
<html>
<head>
<title>Specification Table</title>
<style>
table, th, td {
padding: 5px;
margin-inline:10x;
text-align: center;
.left_shift
text-align: left;
.Empty
</style>
</head>
<body><div>
<table>
<thead>
<tr>
</tr>
<tr>
<th>R Level</th>
<th>U Level</th>
<th>A Level</th>
<th>Total Marks</th>
</tr>
</thead>
<tbody>
<tr>
<td>I</td>
<td>2</td>
<td>4</td>
<td>4</td>
<td>0</td>
<td>8</td>
</tr>
<tr>
<td>II</td>
<td>6</td>
<td>0</td>
<td>2</td>
<td>6</td>
<td>8</td>
</tr>
<tr>
<td>III</td>
<td>6</td>
<td>4</td>
<td>8</td>
<td>0</td>
<td>12</td>
</tr>
<tr>
<td>IV</td>
<td>8</td>
<td>2</td>
<td>4</td>
<td>8</td>
<td>14</td>
</tr>
<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>
Name- pooja dhami
Rollno- 50
Section -C2
<td>14</td>
</tr>
</tbody>
<tfoot>
<tr>
<td class="Empty"></td>
<td><b>Total</b></td>
<td><b>42</b></td>
<td><b>18</b></td>
<td><b>26</b></td>
<td><b>26</b></td>
<td><b>70</b></td>
</tr>
</tfoot>
</table></div>
</body>
</html>
Name- pooja dhami
Rollno- 50
Section -C2
output-
Code-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.e {
text-align: center;
font-size: 25px;
</style>
</head>
<body>
<div>
<h3
</h3>
</div>
<div class="e">
<h2>
</h2>
Name- pooja dhami
Rollno- 50
Section -C2
</div>
<div>
<p>
</p>
</div>
</body>
</html>
Output-
Name- pooja dhami
Rollno- 50
Section -C2
Practical 3:-Create an internal hyperlink from the top of your page to the bottom of the
same page.
Code-
Name- pooja dhami
Rollno- 50
Section -C2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>internal hyperlink</title>
<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>
</style>
Name- pooja dhami
Rollno- 50
Section -C2
</head>
<body>
<hr>
<p>
the internet sometimes called the net is a worldwide system of a computer
network.
a network sometime users at any one computer can,if they have permission ,get
information from any other
computer.
</p>
<div id="bottomSection">
</div>
</body>
</html>
Name- pooja dhami
Rollno- 50
Section -C2
Output-
Practical 4:-Write an html code to create a website of your own (only front page of a
website).
Name- pooja dhami
Rollno- 50
Section -C2
Code-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
Solutions</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #f8f8f8;
color: #333;
header {
background-color: #00ff2a;
color: #fff;
text-align: center;
padding: 20px;
nav {
background-color: #333;
text-align: center;
padding: 10px;
nav a {
Name- pooja dhami
Rollno- 50
Section -C2
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: #00ff99;
color: #fff;
border: none;
font-size: 16px;
cursor: pointer;
.key-features {
margin-top: 20px;
}
Name- pooja dhami
Rollno- 50
Section -C2
.key-features h2 {
color: #64bdea;
.key-features ul {
list-style-type: none;
padding: 0;
.key-features li {
margin-bottom: 10px;
.ayurvedh {
margin-top: 20px;
text-align: center;
.ayurvedh img {
max-width: 100%;
height: auto;
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
Name- pooja dhami
Rollno- 50
Section -C2
</style>
</head>
<body>
<header>
<h1>patanjli</h1>
</header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">help</a>
</nav>
<main>
<section class="intro">
<p>Welcome to the offiial website of patanjli. here we are giving you the best
product from patanjli.</p>
<button>Learn More</button>
</section>
<h2>Key Features</h2>
<ul>
<li>patanjali ayurvedh limited was enstablished in 2006 with the thought of
rural and urban development.</li>
</ul>
</section>
<section class="ayurvedh">
update">
</section>
</main>
<footer>
<p>© ayurvedh</p>
</footer>
</body>
</html>
Name- pooja dhami
Rollno- 50
Section -C2
Output-
Name- pooja dhami
Rollno- 50
Section -C2
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">
initialscale=1.0"> <title>Document</title>
</head>
color: whitesmoke;
.main{
top: 100px;
250px; width:
400px;
}
.second{ margin-left:
50px; background-
250px; width:
Name- pooja dhami
Rollno- 50
Section -C2
solid black;
} input,button{
margin-top:
10px; margin-
top: 20px;
img{
height: 140px;
width: 150px;
</style>
<body>
<hr>
<div class="main">
<div class="first">
<h2>Photography</h2>
moments</p> <img
src="../Project/images/fire.jpg">
</div>
Account</button><br></div> </div>
Name- pooja dhami
Rollno- 50
Section -C2
</body>
</html>
Output-
Name- pooja dhami
Rollno- 50
Section -C2
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;
}
Name- pooja dhami
Rollno- 50
Section -C2
a{
display: block;
margin: 10px;
h4 {
margin-bottom: 10px;
hr {
height: 2px;
border: none;
background-color: #ccc;
width: 50%;
</style>
</head>
<body>
<div class="container">
</div>
</body> </html>
Name- pooja dhami
Rollno- 50
Section -C2
Output-
(i) Div (ii) Span (iii) Pre (iv)Marquee (v)Footer (vi)Header (vii)Nav (viii)Article
(ix)Section
Code-
<!DOCTYPE
<meta charset="UTF-8">
<style> body {
margin: 20px;
header, footer, nav, article, section, div, pre, marquee { border: 1px solid #ccc; margin:
10px auto; padding: 10px; text-align: center;
</style>
</head>
<body>
<hr>
<header>
<h1>This is a Header</h1>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
Name- pooja dhami
Rollno- 50
Section -C2
<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>
This is a preformatted text block. It preserves both spaces and line breaks.
</pre>
<footer>
<p>This is a Footer</p>
</footer>
</body>
</html>
Output-
Name- pooja dhami
Rollno- 50
Section -C2