prac1
prac1
prac2. Create folder name semester_1 in D drive. Add any text and any
photo file (.Jpeg, .png) in that folder. Upload that folder in goggle drive and
manage it.
prac3. Create an online form for registration of students (for any activity)
and download its response.
<html>
<head>
<title>Student Registration Form</title>
</head>
<body>
<h2>Student Registration Form</h2>
<form>
<label for="name">Full Name:</label><br>
<input type="text" id="name" name="student_name" required><br><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="student_email" required><br><br>
<label for="grade">Grade:</label><br>
<input type="text" id="grade" name="student_grade" required><br><br>
<label for="activity">Activity:</label><br>
<select id="activity" name="student_activity" required>
<option value="sports">Sports</option>
<option value="music">Music</option>
<option value="art">Art</option>
<option value="science">Science</option>
</select><br><br>
<h2>Introduction</h2>
<p>This document showcases various <strong>HTML formatting
features</strong>. You will see examples of <em>text formatting</em>,
inserting images, and creating tables.</p>
<h2>Text Formatting</h2>
<p>Here are some examples of different text formatting options:</p>
<ul>
<li><strong>Bold Text:</strong> This text is bold.</li>
<li><em>Italic Text:</em> This text is italic.</li>
<li><u>Underlined Text:</u> This text is underlined.</li>
<li><strong><em>Bold and Italic Text:</em></strong> This text is both
bold and italic.</li>
</ul>
<h2>Inserting Images</h2>
<p>You can insert images into your document. Here is an example:</p>
<img src="F:\DIPLOMA\1st Sem\STATIC WEB PAGE
DESIGN\collage.jpg" alt="Sample Image">
<p><em>Figure 1:</em> Prime College logo</p>
<h2>Creating Tables</h2>
<p>Student Information</p>
<table border="1" cellpadding="10" cellspacing="0">
<tr>
<th>Name</th>
<th>Mobile No</th>
<th>Address</th>
</tr>
<tr>
<td>Rohan</td>
<td>8905087426</td>
<td>Surat</td>
</tr>
<tr>
<td>Krishna</td>
<td>991385096</td>
<td>vapi</td>
</tr>
<tr>
<td>Mayur</td>
<td>9989050691</td>
<td>Navsari</td>
</tr>
</table>
</body>
</html>
prac5. Use mail merge feature for sending invitation letters for expert
lectures to 10 industries.
<html>
<head>
<title>Mail Merge Invitation Letters</title>
</head>
<body>
<h1>Invitation Letters for Expert Lectures</h1>
<div id="letters"></div>
<script>
// Data for industries
const industries = [
{ name: "Tech Innovations Ltd", contact: "Mr. hardik", email:
"hardypatel42@gmail.com" },
{ name: "Global Manufacturing Co.", contact: "Ms. Jane Smith", email:
"hardik.patel.hp291@gmail.com" },
{ name: "Green Energy Solutions", contact: "Mr. Alan Green", email:
"alan.green@greenenergy.com" },
{ name: "Digital Futures Inc.", contact: "Ms. Emma Johnson", email:
"emma.johnson@digitalfutures.com" },
{ name: "Automotive Dynamics", contact: "Mr. Robert Brown", email:
"robert.brown@autodynamics.com" },
{ name: "Smart Homes Ltd", contact: "Ms. Emily Davis", email:
"emily.davis@smarthomes.com" },
{ name: "Eco-Friendly Tech", contact: "Mr. George Wilson", email:
"george.wilson@ecotech.com" },
{ name: "NextGen IT Solutions", contact: "Ms. Laura White", email:
"laura.white@nextgenit.com" },
{ name: "Innovative Pharmaceuticals", contact: "Mr. Kevin Harris",
email: "kevin.harris@innovativepharma.com" },
{ name: "Advanced Robotics", contact: "Ms. Sarah Lee", email:
"sarah.lee@advancedrobotics.com" }
];
prac6. Create spreadsheet, Analyze data using formulas and functions and
present it through charts. Also apply a pivot table to analyze data.
<!-- prac:- 6 Create spreadsheet, Analyze data using formulas and functions and
present it through charts. Also apply a pivot table to analyze data -->
<html>
<head>
<title>Simple Data Analysis</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<h1>Simple Data Analysis</h1>
<script>
// Data Arrays
const mathScores = [85, 90];
const scienceScores = [78, 92];
const englishScores = [88, 85];
<title>Simple Presentation</title>
<style>
.slide { display: none; padding: 20px; text-align: center; }
.active { display: block; }
button { margin: 10px; padding: 10px; cursor: pointer; }
</style>
</head>
<body>
<script>
function nextSlide(slideNumber) {
document.querySelector('.slide.active').classList.remove('active');
document.getElementById('slide' + slideNumber).classList.add('active');
}
function prevSlide(slideNumber) {
document.querySelector('.slide.active').classList.remove('active');
document.getElementById('slide' + slideNumber).classList.add('active');
}
</script>
</body>
</html>
prac8. Develop HTML/Web page using various formatting tags as per given
sample.
<html>
<head>
<title>Sample HTML Page</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
color: #333;
}
h2 {
color: #666;
}
p{
line-height: 1.6;
}
ul, ol {
margin: 10px 0;
}
table {
width: 100%;
border-collapse: collapse;
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 8px;
text-align: left;
}
blockquote {
border-left: 4px solid #ccc;
padding-left: 10px;
margin: 10px 0;
font-style: italic;
}
</style>
</head>
<body>
<!-- Main Heading -->
<h1>Welcome to My Sample Page</h1>
prac9. Use image tags to create a web page and Use hyperlink tag to navigate
through different web pages as per given sample.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample Web Page with Images and Links</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
color: #333;
}
img {
max-width: 100%;
height: auto;
border: 1px solid #ddd;
}
.gallery img {
margin: 10px;
border-radius: 8px;
}
a{
color: #1a73e8;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<!-- Main Heading -->
<h1>Welcome to My Image Gallery</h1>