Assignment 1
Assignment 1
Subject:CSW1(CSE 2141)
Regd no-2341019349
Section-23412G1
1. Create an HTML "RESUME" page with sections for Personal Information, Educational
Achievements, and Contact Information. Use appropriate tags like <h1>, <ul>, <ol>, <a>, and
<address>.
Code:
<html>
<head>
<title>Resume </title>
</head>
<body>
<ul>
<li>Age-19</li>
<li>roll no-58</li>
<li>Nationality-Indian</li>
</ul>
<p><h2><a href=https://www.linkedin.com/in/aditya-kumar-satapathy-
075a12330/"target=_blank>View my linkedIn Profile</a></h2></p>
<h2>Educational Acheivment</h2>
<ol>
<li>10<sup>th</sup>-85%</li>
<li>12<sup>th</sup>-78%</li>
<li>UG-8.0(<em>B.Tech(CSE)</em>)
</ol>
<h2>Contact Information</h2>
<h4>Address</h4>
<add>
Saileshree Vihar<br>
Bhubaneswar<br>
Odisha<br>
</add>
</body>
</html>
Output:
2. Create an HTML image gallery with a "My Image Gallery" heading. Insert three clickable images
using <img> (with alt attributes) inside <a> tags, linking to larger versions that open in a new tab. Add
captions below each image.
Code: <html>
<head>
</head>
<body>
<h1>My Image Gallery</h1>
<html>
<head>
<body>
<a href="https://media.istockphoto.com/id/1311302395/photo/express-
train.jpg?s=1024x1024&w=is&k=20&c=Anz-Hq7cF1i1GpdKXNzmvdYqS0kUO2TNV0u7SyIB51k="
target="_blank"><img src="https://media.istockphoto.com/id/1311302395/photo/express-
train.jpg?s=1024x1024&w=is&k=20&c=Anz-
Hq7cF1i1GpdKXNzmvdYqS0kUO2TNV0u7SyIB51k="height="300"width="300"alt="Zurich
city"></a><p>A Zurich city.</p>
<a href="https://media.istockphoto.com/id/1299934912/photo/geneva-aerial-view-
switzerland.jpg?s=1024x1024&w=is&k=20&c=d9Ac3sdJowSQzDT0rTKX-
IK_j4wydxoBoi6K4Mo_8kM="target="_blank"><img
src="https://media.istockphoto.com/id/1299934912/photo/geneva-aerial-view-
switzerland.jpg?s=1024x1024&w=is&k=20&c=d9Ac3sdJowSQzDT0rTKX-
IK_j4wydxoBoi6K4Mo_8kM="height="300"width="300"alt="Zurich lake leman"></a><p>Zurich Lake
leman.</p>
<a href="https://images.pexels.com/photos/757889/pexels-photo-
757889.jpeg?auto=compress&cs=tinysrgb&w=600"target="_blank"><img
src="https://images.pexels.com/photos/757889/pexels-photo-
757889.jpeg?auto=compress&cs=tinysrgb&w=600"height="300"width="300"alt="Lavender
Flower"></a><p>Lavender flower in a vase.</p>
</body>
</html>
Output:
3.Create a Student Report table with a border, header row, and columns for Student Name, Roll No.,
Subject (Math, Science, English), Marks, and Grade. Use alternate row colors for readability and
include a caption "Student Report."
Code: <html>
<head>
<title>Assignment1 Q3</title>
</head>
<body>
<table border="2">
<tr style="background-color:blue">
</tr>
<tr style="background-color:grey">
</tr>
<tr style="background-color:pink">
<td >Aditya</td>
<td>45</td>
<td>78</td>
<td>90</td>
<td>82</td>
<td>278</td>
<td>O</td>
</tr>
<tr style="background-color:Green">
<td>Ramesh </td>
<td>44</td>
<td>85</td>
<td>84</td>
<td>72</td>
<td>275</td>
<td>B</td>
</tr>
<tr style="background-color:Bisque">
<td>Debansha </td>
<td>50</td>
<td>75</td>
<td>54</td>
<td>72</td>
<td>311</td>
<td>A</td>
</tr>
</table>
</body>
</html>
Output:
4.Design an HTML page titled "My Weekly Schedule" using <h1>. Create a table with two columns,
Day and Activities, using <th> for headings and <td> for data cells to list days of the week and
corresponding activities.
Program: <html>
<head>
</head>
<body>
<th>
<tr>
<th>Day</th>
<th>Activities</th>
</tr>
</th>
<tbody>
<tr>
<td>Monday</td>
</tr>
<tr>
<td>Tuesday</td>
</tr>
<tr>
<td>Wednesday</td>
</tr>
<tr>
<td>Thursday</td>
<td>Doing Yoga</td>
</tr>
<tr>
<td>Friday</td>
<td>Work on assignments</td>
</tr>
<tr>
<td>Saturday</td>
<td>Doing Yoga</td>
</tr>
<tr>
<td>Sunday</td>
</tr>
</tbody>
</table>
</body>
</html>
Code:
5.Create a photo showcase webpage displaying three photos in a row with captions below each.
Include a blockquote for each photo with a famous quote and emphasize the author's name using
tags like <strong> or <em>.
Program: <html>
<head>
<style>
img{
height: 450px;
align-items: center;
</style>
</head>
<body>
<table>
</tr>
<tr>
<td> <blockquote>"Two things are infinite: the universe and human stupidity; and I'm not
sure about the universe." - <em>Albert Einstein</em></blockquote> </td>
<td><blockquote>"Be the change that you wish to see in the world." - <em>Mahatma
Gandhi</em></blockquote></td>
</td>
</tr>
</table>
</body>
</html>
Outpur:
6.
Create an HTML Shopping List page with a <ul> for general items (groceries, toiletries, etc.), each
described using a <dl>. Add an <ol> for top-priority items, and use <br> to separate sections.
<head>
</head>
<body>
<ul>
<li>
Groceries
<dl>
<dt>Fruits:</dt>
<dt>Vegetables:</dt>
</dl>
</li>
<li>
Toiletries
<dl>
<dt>Shampoo:</dt>
<dd>For maintaining healthy hair.</dd>
<dt>Soap:</dt>
</dl>
</li>
<li>
Household Supplies
<dl>
<dt>Cleaning Supplies:</dt>
<dt>Paper Towels:</dt>
</dl>
</li>
</ul>
<br>
<h2>Top-Priority Items:</h2>
<ol>
<li>Milk</li>
<li>Bread</li>
<li>Eggs</li>
</ol>
<br>
</body>
</html>
Output:
7.Create an HTML page titled "Favorite Movies/TV Shows" using <h1>. Display your top five
favorites in an <ol>, with each title as a clickable link to its IMDb page in a new tab.
Program:
<html>
<head>
</head>
<body>
<ol>
<li>
<a
href="https://www.bing.com/ck/a?!&&p=95f5ca93b599e040JmltdHM9MTcyNzc0MDgwMCZpZ3VpZ
D0yYThmY2Y4MC01YTQxLTYxNmYtMWQ3Ny1kYjI5NWU0MTZmMWUmaW5zaWQ9NTIyOQ&ptn=3&
ver=2&hsh=3&fclid=2a8fcf80-5a41-616f-1d77-
db295e416f1e&psq=gangs+of+wasseypur&u=a1aHR0cHM6Ly93d3cuamlvY2luZW1hLmNvbS9tb3ZpZ
XMvZ2FuZ3Mtb2Ytd2Fzc2V5cHVyLTEvMzk4MzE0MS93YXRjaCM6fjp0ZXh0PUdhbmdzIE9mIFdhc3Nle
XB1ciAxICgyMDEyKSBJcyBBIEFjdGlvbg&ntb=1" target="_blank">Gangs of Wasseypur</a>
</li>
<li>
</li>
<li>
</li>
<li>
<a
href="https://www.primevideo.com/detail/0H3DDB4KBJFNDCKKLHNRLRLVKQ/ref=atv_dp_share_cu
_r" target="_blank">Family Man</a>
</li>
<li>
<a
href="https://www.primevideo.com/detail/0HV20AIVKWRM0Q9N6NCXO7DKD5/ref=atv_dp_share_c
u_r" target="_blank">Mirzapur</a>
</li>
</ol>
</body>
</html>
Output:
8.
1. Create an HTML page titled "My Achievements" using <h1>, and include a motivational
quote with the <blockquote> tag. Use the <abbr> tag for organizations or awards with proper title
attributes. Add images or links to your certificates.
Program:
<html>
<head>
<style>
img{
width: 300px;
height: 200px;
</style>
</head>
<body>
<h1>My Achievements</h1>
<blockquote>
- <em>Franklin D. Roosevelt</em>
</blockquote>
<ul>
</ul>
<h2>Certificates</h2>
<a href="https://forage-uploads-prod.s3.amazonaws.com/completion-
certificates/Blackbird/8XSySTLv68WYeFhke_Blackbird%20Australia_YkNGpCJNnu6BCv7q6_17227557
19043_completion_certificate.pdf" target="_blank">
</body>
</html>
Output:
9.
1. Create an HTML page titled "My Hobbies" using <h1> and an unordered list (<ul>) for your
hobbies with <li> items. Include a hyperlink to a related website using <a> that opens in the same
browser, and add a "Go Back" link on each new page to return to the main page.
Program:
<html>
<head>
</head>
<body>
<h1>My Hobbies</h1>
<ul>
<li>Reading</li>
<li>Traveling</li>
<li>Cooking</li>
<li>Gardening</li>
</ul>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<h1>Photography</h1>
</body>
</html>
Output:
10.
Create a page titled "Linear Motion Equation" using the <title> tag. In the body, add a main heading
with the equation "S = vᵢt + ½at²", making it bold and emphasized. Include a paragraph explaining
the equation and an unordered list defining each symbol.
Program:
<html>
<head>
</head>
<body>
<p>
</p>
<ul>
</ul>
<p>
Note: This equation was originally written in 1905. "An object in motion stays in motion unless acted
upon by an <u>external force</u>."
</p>
</body>
</html>
Output:
11.
Create a webpage titled "Travel Diary" with a heading "Explore Beautiful Destinations." Include a
link to an external website and add two or three destination links, each with a clickable image
leading to another page.
Program:
<html>
<head>
<style>
body {
line-height: 1.6;
h1 {
text-align: center;
color: #2c3e50;
img {
width: 300px;
height: 100;
border-radius: 8px;
</style>
</head>
<body>
<p>To learn more about traveling tips and exciting destinations, visit <a
href="https://www.lonelyplanet.com" target="_blank">Lonely Planet</a>.</p>
<img src="https://images.pexels.com/photos/10330682/pexels-photo-
10330682.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"/>
</a>
</div>
<img src="https://images.pexels.com/photos/1483054/pexels-photo-
1483054.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2" alt="Maldives">
</a>
</div>
<img src="https://images.pexels.com/photos/5707602/pexels-photo-
5707602.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2" alt="Sydney, Australia">
</a>
</div>
</body>
</html>
Output:
12.
Create a Webpage that Has the Following Attributes: tabindex, accesskey, draggable, and
contenteditable.
Program:
<html>
<head>
</head>
<body>
</body>
</html>
Output: