mywebsite / index.html
deepi8's picture
Update index.html
2ab053c verified
Raw History Blame Contribute Delete
3.27 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Deepika’s Personal Webpage</title>
<style>
body {
font-family: "Poppins", Arial, sans-serif;
background: linear-gradient(135deg, #e3f2fd, #ede7f6);
color: #222;
margin: 0;
padding: 0;
text-align: center;
}
header {
background-color: #5b21b6;
color: white;
padding: 25px 0;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
h1 {
margin: 0;
font-size: 2.5rem;
letter-spacing: 1px;
transition: 0.5s;
}
h2 {
color: #4c1d95;
margin-top: 40px;
font-size: 1.8rem;
}
p {
width: 70%;
margin: 20px auto;
line-height: 1.7;
font-size: 17px;
}
button {
background-color: #7c3aed;
color: white;
border: none;
border-radius: 8px;
padding: 10px 20px;
cursor: pointer;
margin-top: 15px;
font-size: 16px;
transition: background 0.3s ease;
}
button:hover {
background-color: #5b21b6;
}
a {
display: inline-block;
text-decoration: none;
color: white;
background-color: #8b5cf6;
padding: 10px 25px;
border-radius: 8px;
margin-top: 20px;
transition: 0.3s;
}
a:hover {
background-color: #6d28d9;
}
footer {
background-color: #5b21b6;
color: white;
padding: 15px 0;
margin-top: 50px;
font-size: 14px;
}
hr {
width: 80%;
margin: 50px auto;
border: 0.5px solid #aaa;
}
</style>
</head>
<body>
<!-- Task 1 Section -->
<header>
<h1 id="name-heading">Ranju</h1>
<button onclick="changeName()">Change Name</button>
</header>
<hr>
<!-- Task 2 Section -->
<section>
<h2>About Me 🌸</h2>
<p>
Hello! I'm Deepika — a creative and passionate learner who enjoys exploring new technologies.
I love designing websites, learning programming languages, and turning ideas into reality.
</p>
<p>
I am currently pursuing my education in computer science, where I’ve discovered a strong interest in web development.
I enjoy experimenting with HTML, CSS, and JavaScript to make webpages more interactive and user-friendly.
</p>
<p>
In my free time, I like listening to music, reading motivational books, and exploring creative design ideas.
My goal is to keep improving my coding skills and build unique projects that reflect both creativity and logic.
</p>
<p>
My dream is to become a skilled web developer and create digital experiences that inspire others.
</p>
<a href="https://www.w3schools.com/html/" target="_blank">Learn My Favorite Subject: HTML</a>
</section>
<footer>
<p>Created by Deepika 💜 | 2025 Web Design Task</p>
</footer>
<script>
// ===== JavaScript for Task 1 =====
function changeName() {
const heading = document.getElementById("name-heading");
heading.textContent = "Deepika";
heading.style.color = "#fff176";
heading.style.fontSize = "2.8rem";
}
</script>
</body>
</html>