F 1 Aex
F 1 Aex
AIM:WriteaHTMLprogram,toexplaintheworkingoflists.
Note:Itshouldhaveanorderedlist,unorderedlist,nestedlistsandorderedlistinan
unordered List and definition lists
PROGRAM:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Lists Example</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 20px;
}
h2 {
color: #333;
}
</style>
</head>
<body>
<h1>Working with Lists in HTML</h1>
<dd>HyperText Markup Language, the standard markup language for creating web
pages.</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets, a style sheet language used for describing the
presentation of a document written in HTML.</dd>
<dt>JavaScript</dt>
<dd>A high-level, dynamic, untyped, and interpreted programming language,
commonly used for web development.</dd>
</dl>
</body>
</html>
OUTPUT:
2. Unordered List
Grains
Proteins
Snacks
3. Nested List
Operating Systems
o Windows
o macOS
o Linux
Mobile Technologies
o Android
o iOS
o Flutter
2. Data Cleaning
3. Data Visualization
Machine Learning
1. Supervised Learning
2. Unsupervised Learning
3. Reinforcement Learning
5. Definition List
HTML
HyperText Markup Language, the standard markup language for
creating web pages.
CSS
Cascading Style Sheets, a style sheet language used for describing the
presentation of a document written in HTML.
JavaScript
A high-level, dynamic, untyped, and interpreted programming language,
commonly used for web development.
RESULT:
Hence the program for to explain the working of lists was executed successfully.
AIM:
Write a HTML program, to explain the working of hyperlinks using <a> tag and href,
target Attributes.
PROGRAM:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hyperlinks in HTML</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 20px;
}
h2 {
color: #333;
}
a{
color: #007BFF;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Working with Hyperlinks in HTML</h1>
1. Basic Hyperlink
Visit Bing
The target="_blank" attribute ensures the link opens in a new tab or window.
Clicking this link scrolls the page to a specific section with the ID "section4".
4. Email Link
Send an Email
This link opens the user's default email client to send an email to
"[email protected]".
5. Phone Link
Call +1 (987) 654-3210
On mobile devices, this link will prompt the user to make a call to the specified
number.
RESULT:
Hence the html program to explain the working of hyperlinks using <a> tag and href,
target Attributes was executed successfully.
AIM:
To Create a HTML document that has your image and your friend’s image with a specific height and
width. Also when clicked on the images it should navigate to their respective profiles.
PROGRAM:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Profile Links</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
}
.profile-image {
margin: 20px;
border-radius: 10px;
transition: transform 0.2s;
}
.profile-image:hover {
transform: scale(1.05);
}
</style>
</head>
<body>
</a>
<p>Click on my image to view friends profile.</p>
</body>
</html>
My profile.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Profile</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
line-height: 1.6;
}
h1 {
color: #333;
}
table {
width: 50%;
border-collapse: collapse;
margin: 20px auto;
}
th, td {
border: 1px solid #ccc;
padding: 10px;
text-align: left;
}
th {
background-color: #f4f4f4;
}
</style>
</head>
<body>
<h1>My Profile</h1>
<table>
<tr>
<th>Name</th>
<td>Ramesh</td>
</tr>
<tr>
<th>Date of Birth</th>
<td>06 may 2005</td>
</tr>
<tr>
<th>Department</th>
<td>CSE</td>
</tr>
<tr>
<th>Class</th>
<td>2nd Year</td>
</tr>
<tr>
<th>Place</th>
<td>Pulivendula</td>
</tr>
<tr>
<th>Country</th>
<td>INDIA</td>
</tr>
<tr>
<th>Age</th>
<td>19</td>
</tr>
</table>
</body>
</html>
Friend profile.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Friend's Profile</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
line-height: 1.6;
}
h1 {
color: #333;
}
table {
width: 50%;
border-collapse: collapse;
margin: 20px auto;
}
th, td {
border: 1px solid #ccc;
padding: 10px;
text-align: left;
}
th {
background-color: #f4f4f4;
}
</style>
</head>
<body>
<h1>Friend's Profile</h1>
<table>
<tr>
<th>Name</th>
<td>Aravind</td>
</tr>
<tr>
<th>Date of Birth</th>
<td>7 March 2004</td>
</tr>
<tr>
<th>Department</th>
<td>CSE</td>
</tr>
<tr>
<th>Class</th>
<td>2nd Year</td>
</tr>
<tr>
<th>Place</th>
<td>HYDERABAD</td>
</tr>
<tr>
<th>Country</th>
<td>INDIA</td>
</tr>
<tr>
<th>Age</th>
<td>21</td>
</tr>
</table>
</body>
</html>
Outputs:
Result:
Hence the HTML document that has your image and your friend’s image with a specific
height and width. Also when clicked on the images it should navigate to their
respective profiles was successfully executed.
AIM:
Write a HTML program, in such a way that, rather than placing large images on a page,
the preferred technique is to use thumbnails by setting the height and widthparameters
to something like to 100*100 pixels. Each thumbnail image is also a link to a full sized
version of the image. Create an image gallery using this technique
PROGRAM:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Flower Thumbnails</title>
<style>
.gallery {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
justify-content: center;
}
.gallery img {
width: 250px;
height: 250px;
object-fit: cover;
border: 2px solid #ddd;
border-radius: 25%;
}
</style>
</head>
<body>
<center><h1>Flower Thumbnail Gallery</h1></center>
<div class="gallery">
<a href="../images/rose.jpg" target="_blank">
<img src="../images/roseThumb.png" alt="Rose" />
</a>
<a href="../images/tulip.jpg" target="_blank">
<img src="../images/tulipThumb.png" alt="Tulip" />
</a>
<a href="../images/sunflower.jpg" target="_blank">
<img src="../images/sunflowerThumb.png" alt="Sunflower" />
</a>
RESULT:
Hence the program , in such a way that, rather than placing large images on a page, the
preferred technique is to use thumbnails by setting the height and widthparameters to
something like to 100*100 pixels. Each thumbnail image is also a link to a full sized
version of the image. Create an image gallery using this technique was executed
successfully.