0% found this document useful (0 votes)
31 views19 pages

HTML Programs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views19 pages

HTML Programs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

1.

Display the structure of simple HTML page

<!DOCTYPE html>
<html>
<head>
<title>FirstDemo</title>
</head>
<body>
this is structure of html code
</body>

</html>

OUTPUT:

2.Display the basic tags in HTML

<!DOCTYPE html>
<html>
<head>
<title>Heading Tag</title>
</head>
<body>
<h1>this is h1 tag</h1>
<h2>this is h2 tag</h2>
<h3>this is h3 tag</h3>
<h4>this is h4 tag</h4>
<h5>this is h5 tag</h5>
<h6>this is h6 tag</h6>
<p>Lok Sabha Speaker election: It’s NDA’s Om Birla vs INDIA bloc’s
Kodikunnil Suresh
Kodikunnil Suresh of Congress files nomination as INDIA bloc
candidate; Om Birla files nomination for Speaker’s post as NDA consensus
candidate
Updated - June 25, 2024 12:43 pm IST<br><br><br><hr>

Published - June 25, 2024 12:07 pm IST - New Delhi

Lok Sabha Speaker election: It’s NDA’s Om Birla vs INDIA bloc’s


Kodikunnil Suresh
Kodikunnil Suresh of Congress files nomination as INDIA bloc
candidate; Om Birla files nomination for Speaker’s post as NDA consensus
candidate
Updated - June 25, 2024 12:43 pm IST

Published - June 25, 2024 12:07 pm IST - New Delhi

</p>
</body>
</html>
OUTPUT:

3.basic tags
<!DOCTYPE html>
<html>
<head>
<title>pav bhaji recipe</title>
</head>
<body>
<h1>Recipe of the Pav Phaji</h1>
<p>
This <b>Pav Bhaji</b> recip has a perfect blend of <i>spices and
veggies</i>and can be coocked quickly.<u>To win everyone's heart ,try this yummy
pav bhaji recipe</u> with the goodness of veggies.<del>Restaurant
Recipes</del><hr>

</p>
<h3>Ingredients</h3>
<pre>
1.Sachet
<u>MAGGI Masalaae-Magic</u>
2.2 tablespoons<b>oil</b>
3.1 teaspoon <b>Ginger -Garlic paste</b>
4. 2 tomota
5. 2 cups Hot Water
</pre>

</body>

</html>

OUTPUT:

4. Create the time table using Table tag

<!DOCTYPE>
<html>
<head>
<title>timetable</title>
</head>
<body>
<h1>TimeTable</h1>
<table frame="box" rules="all" border="10px" >
<thead>
<tr>
<th>Time</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Tues</th>
<th>fri</th>
<th>sat</th>
</tr>
</thead>
<tbody>
<tr>
<td>7:45 to 8:30</td>
<td>A.O.S.</td>
<td>A.O.S.</td>
<td>A.O.S.</td>
<td>A.java</td>
<td>A.java</td>
<td>A.java</td>
</tr>
<tr>
<td> 8:30 to 9:15</td>
<td>AP</td>
<td>AP</td>
<td>AP</td>
<td>DA</td>
<td>DA</td>
<td>DA</td>
</tr>
<tr>
<td> 9:15 to 10:00</td>
<td>ST</td>
<td>ST</td>
<td>ST</td>
<td>IP</td>
<td>IP</td>
<td>IP</td>
</tr>
<tr>
<td> 10:05 to 10:50</td>
<td>CC</td>
<td>CC</td>
<td>CC</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
</tbody>
</table>
</body>

</html>

OUTPUT:

5.Create table student name or marks

<!DOCTYPE html>
<html>
<head>
<title>SimpleTable</title>
</head>
<body>
<h1>Student name or Marks</h1>
<table frame="box" border="1px" higjt="100"
width="300px"cellspadding="10px" cellspacing="10px">
<thead>
<tr>
<th>roll no</th>
<th>name</th>
<th>sub</th>
<th>marks</th>

</tr>
</thead>
<tbody>
<tr>
<td>1.</td>
<td>Bhumika</td>
<td>java</td>
<td>19</td>
</tr>
<tr rowspan="2">
<td>2.</td>
<td>shivanjali</td>
<td>c lang</td>
</tr>
<tr>
<td>3.</td>
<td colspan="2">Supriya</td>
<td>18</td>
</tr>
<tr>
<td>4.</td>
<td>shiv</td>
<td>HTML</td>
<td>19</td>
</tr>
</tbody>
</table>
</body>
</html>
OUTPUT:

6.Create the calender using the table tag

<!DOCTYPE html>
<html>
<head>
<title>calender</title>
</head>
<body>
<h1>
July 2024
</h1>
<table frame="box" border="2px" height="100px" woidth="300px"
cellspadding="5px" cellspacing="5px">
<tbody>
<tr>
<td>Sunday</td>
<td></td>
<td>7</td>
<td>14</td>
<td>21</td>
<td>28</td>
</tr>
<tr>
<td>Monday</td>
<td>1</td>
<td>8</td>
<td>15</td>
<td>22</td>
<td>29</td>
</tr>
<tr>
<td>Tuesday</td>
<td>2</td>
<td>9</td>
<td>16</td>
<td>23</td>
<td>30</td>
</tr>
<tr>
<td>Wednesday</td>
<td>3</td>
<td>10</td>
<td>17</td>
<td>24</td>
<td>31</td>
</tr>
<tr>
<td>Thursday</td>
<td>4</td>
<td>11</td>
<td>18</td>
<td>25</td>
<td></td>
</tr>
<tr>
<td>Firday</td>
<td>5</td>
<td>12</td>
<td>19</td>
<td>26</td>
<td></td>
</tr>
<tr>
<td>Saturday</td>
<td>6</td>
<td>13</td>
<td>20</td>
<td>27</td>
<td></td>
</tr>
</tbody
</table>
</body>
</html>

OUTPUT:

7. Create resume using tags

<!DOCTYPE html>
<html>
<head>
<title>resume</title>
</head>
<body>
<h1>Resume</h1>
<p>
Name: Chaudhari Bhumika Mahendra
</p><hr>
<h5>Description of objective</h5>
<p>
Passionate about [specific area of interest], I am seeking an entry-
level position that allows me to apply my [relevant skills or knowledge] to drive
innovation and deliver results. I am committed to continuous learning and
professional development to excel in my career.
</p>
<hr>
<h4>Skills</h4>
<ol type="1">
<li>C language</li>
<li>HTML</li>
<li>JAVA</li>
<li>AP</li>
</ol><hr>
<h4>Eduction</h4>
<table frame="box" cellspacing="5px" rules="all" cellpadding="5px"
brodre="1px" height="50px" width="50px" >
<thead>
<tr>
<th>Eduction</th>
<th>College</th>
<th>percentage</th>
</tr>
</thead>
<tbody>
<tr>
<td>SSC</td>
<td>JVR</td>
<td>80.81</td>
</tr>
<tr>
<td>HSC</td>
<td>JVR</td>
<td>80</td>
</tr>
<tr>
<td>BSC(C.S)</td>
<td>NACS</td>
<td>70</td>
</tr>
</tbody>
</table>
<hr>
<h4>Declaration</h4>
<ul type="circle">
<li>"I certify that the information provided in this resume is true
and accurate to the best of my knowledge."</li>
<li>"I hereby declare that the details furnished above are true and
correct."</li>
<li>"The information presented in this resume accurately reflects my
qualifications and experience."</li>
</ul>
<hr>
</body>
</html>

OUTPUT:
8.Create the webpage using the anchor tag and attach the webpage using
anchor tag

html.html

<!DOCTYPE html>
<html>
<head>
<title>HTML PAGE</title>
</head>
<body>
<h2>HTML</h2>
<img src=
"https://upload.wikimedia.org/wikipedia/commons/thumb/6/61/HTML5_logo_and_wordmar
k.svg/800px-HTML5_logo_and_wordmark.svg.png" alt="Image" height="200px"
width="200px"/>
<p>HyperText Markup Language (HTML) is the standard markup language for
documents designed to be displayed in a web browser. It defines the
content and structure
of web content. It is often assisted by technologies such as
Cascading Style Sheets (CSS) and
scripting languages such as JavaScript.
</p>
<a href="css.html">CSS</a>
<a href="js.html">JS</a>
</body>
</html>

OUTPUT:

css.html

<!DOCTYPE html>
<html>
<head>
<title>CSS PAGE</title>
</head>
<body>
<h2>CSS</h2>
<img src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAAELCAMAAAC77XfeAAAA8FBMVEX///
8mTeQpZfHr6+sAAAAVROOTo/AnWevw7+soYO4hSuQnZPHl6ff18+sPQeQTQ+Swu+hEYeWGhoahrugQW/C
ZmZlkZGQfHx+/0Pra2tpKd/KxsbGhoaGvw/kmJibz8/MAO+ImUuf19/4AVvAwbfLk5utxh+y0vvTP1/l6
ju3u8f1adem5wumgrvJOfvMJWfDc4fqBk+2luvjR1urF1Pu+yPaos+g5XOZNauVrgevR3vyLm+6aqfFhe
Omcs/e3t7cTExNCQkJubm6BgYGGludfh/TM0up3ieaMqPdqkfVLaOiPnOduguqBnvZwlfVahvQHtffvAA
AMzklEQVR4nO2dfUPayBaHg26MDJhopbfWrVuCLyCIIoK8iLZ3t2st6vb7f5ubEEAymXNOZpK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nf6nXRD+GoyHAXPDsx3ujNo/zLHaJx4N2c5/ytgdrm3pXBrtPoUq4NeklsjOv8D
LIMq5cXQMgwAAAAASUVORK5CYII=" alt="Image" height="200px" width="200px"/>
<p>CSS (Cascading Style Sheets) is used to style and layout web pages —
for example,
to alter the font, color, size, and spacing of your content,
split it into multiple columns, or add animations and other
decorative features
</p>
<a href="html.html">HTML</a>
<a href="js.html">JS</a>
</body>
</html>

OUTPUT:
Js.html

<!DOCTYPE html>
<html>
<head>
<title>JS PAGE</title>
</head>
<body>
<h2>JS</h2>
<img
src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScr
ipt_logo_2.svg/1200px-Unofficial_JavaScript_logo_2.svg.png" alt="Image"
height="200px" width="200px"/>
<p>
JavaScript is a scripting or programming language that allows you to
implement complex features on web pages — every time a web page does more than
just sit there and display static information for you to look
at — displaying timely content updates, interactive maps, animated
2D/3D graphics, scrolling video jukeboxes, ...
</p>
<a href="html.html">HTML</a>
<a href="css.html">JS</a>
</body>
</html>

OUTPUT:
10. create a web page and fit 4 image on the one webpage using iamge
tag

<!DOCTYPE html>
<html>
<head>
<title>Flowers</title>
</head>
<body>
<h1>Flowers</h1>
<img src="https://img.freepik.com/free-photo/beautiful-blooming-flowers-
spring-season_23-
2150790288.jpg?size=626&ext=jpg&ga=GA1.1.2113030492.1720051200&semt=ais_user"
alt="Image" height="200px"weidth="200px"/>
<img src="https://img.freepik.com/free-photo/natures-beauty-captured-
colorful-flower-close-up-generative-ai_188544-8593.jpg" alt="Image"
height="200px"weidth="200px"/>
<br><img src="https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcQkaPLK40ub6iMoWyTSNVPVN_GZsiHVfj61tA&s"
alt="Image" height="200px"weidth="200px"/>
<img src="https://images.pexels.com/photos/250591/pexels-photo-
250591.jpeg?auto=compress&cs=tinysrgb&w=400" alt="Image"
height="200px"weidth="200px"/>

</body>

</html>

OUTPUT:

You might also like