html assignment day 01 with css
November 23, 2026 2026-11-23 11:13html assignment day 01 with css
<!DOCTYPE html>
<html lang=”en”>
<head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Student Introduction | UICT</title>
<style>
/* General CSS */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background: #eef2f8;
color: #333;
line-height: 1.7;
}
/* Header */
header {
background: linear-gradient(135deg, #071b49, #1455a4);
color: white;
text-align: center;
padding: 35px 15px;
border-bottom: 5px solid #d4af37;
}
header h1 {
font-size: 32px;
margin-bottom: 8px;
}
header p {
color: #e0eaff;
font-size: 15px;
}
/* Main Container */
.container {
max-width: 900px;
margin: 35px auto;
padding: 20px;
}
/* Profile Card */
.profile-card {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 5px 20px rgba(0,0,0,0.10);
margin-bottom: 25px;
text-align: center;
}
.profile-card h2 {
color: #123c78;
margin-bottom: 10px;
}
.profile-card h3 {
color: #d4a017;
margin-bottom: 15px;
}
.profile-card p {
font-size: 16px;
margin-bottom: 8px;
}
hr {
border: none;
height: 2px;
background: #e5eaf2;
margin: 20px 0;
}
/* Formatting Section */
.format-card {
background: white;
padding: 25px;
border-radius: 15px;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
margin-bottom: 25px;
}
.format-card h2 {
color: #123c78;
margin-bottom: 15px;
border-left: 5px solid #d4af37;
padding-left: 12px;
}
.format-item {
background: #f3f6fc;
padding: 10px 15px;
margin: 8px 0;
border-radius: 7px;
}
/* Details Section */
.details-card {
background: white;
padding: 25px;
border-radius: 15px;
box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.details-card h2 {
color: #123c78;
margin-bottom: 18px;
border-left: 5px solid #d4af37;
padding-left: 12px;
}
.detail-row {
display: flex;
justify-content: space-between;
padding: 12px 15px;
border-bottom: 1px solid #e5eaf2;
gap: 15px;
}
.detail-row strong {
color: #123c78;
}
.detail-row span {
text-align: right;
}
/* Footer */
footer {
background: #071b49;
color: white;
text-align: center;
padding: 20px;
margin-top: 35px;
border-top: 4px solid #d4af37;
}
footer p {
font-size: 14px;
}
/* Responsive Design */
@media (max-width: 600px) {
header h1 {
font-size: 24px;
}
.container {
margin: 15px auto;
padding: 12px;
}
.profile-card,
.format-card,
.details-card {
padding: 18px;
}
.detail-row {
flex-direction: column;
gap: 2px;
}
.detail-row span {
text-align: left;
}
}
</style></head>
<body>
<!-- Header -->
<header>
<h1>Welcome to My Website</h1>
<p>Student Introduction & Personal Profile</p>
</header>
<div class="container">
<!-- Profile Section -->
<section class="profile-card">
<h2>Student Introduction</h2>
<h3>About Me</h3>
<hr>
<p>My name is <b>Rahul Kumar</b>.</p>
<p>I am learning <strong>HTML Web Designing</strong>.</p>
<p>My goal is to become a Professional Web Developer.</p>
</section>
<!-- Text Formatting Section -->
<section class="format-card">
<h2>HTML Text Formatting</h2>
<div class="format-item">
<b>Bold Text</b>
</div>
<div class="format-item">
<strong>Strong Text</strong>
</div>
<div class="format-item">
<i>Italic Text</i>
</div>
<div class="format-item">
<u>Underline Text</u>
</div>
<div class="format-item">
<mark>Highlighted Text</mark>
</div>
<div class="format-item">
<small>Small Text</small>
</div>
<div class="format-item">
<del>Deleted Text</del>
</div>
<div class="format-item">
<ins>Inserted Text</ins>
</div>
<div class="format-item">
H<sub>2</sub>O (Subscript)
</div>
<div class="format-item">
10<sup>2</sup> (Superscript)
</div>
</section>
<!-- Student Details -->
<section class="details-card">
<h2>My Personal Details</h2>
<div class="detail-row">
<strong>Student Name:</strong>
<span>Rahul Kumar</span>
</div>
<div class="detail-row">
<strong>Father's Name:</strong>
<span>Rajesh Kumar</span>
</div>
<div class="detail-row">
<strong>Course:</strong>
<span>ADCA</span>
</div>
<div class="detail-row">
<strong>Institute:</strong>
<span>UICT</span>
</div>
<div class="detail-row">
<strong>Address:</strong>
<span>Gorakhpur, Uttar Pradesh</span>
</div>
<div class="detail-row">
<strong>Mobile:</strong>
<span>9876543210</span>
</div>
</section>
</div>
<!-- Footer -->
<footer>
<p>© 2026 UICT | Unique Institute of Computer Technology</p>
<p>Empowering Skills, Building Careers</p>
</footer></body>
</html>