Skip to content

Commit 1e390b7

Browse files
authored
Update index.html
1 parent 94a6837 commit 1e390b7

1 file changed

Lines changed: 19 additions & 50 deletions

File tree

‎index.html‎

Lines changed: 19 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,66 +3,35 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>My Professional Website</title>
6+
<title>Mera Website</title>
7+
8+
<!-- CSS yahi likh diya -->
79
<style>
810
body {
9-
margin: 0;
1011
font-family: Arial, sans-serif;
11-
background: #f5f5f5;
12-
color: #333;
13-
}
14-
header {
15-
background: #222;
16-
color: white;
17-
padding: 15px;
12+
background: #f0f0f0;
1813
text-align: center;
14+
margin-top: 50px;
1915
}
20-
nav {
21-
background: #444;
22-
display: flex;
23-
justify-content: center;
24-
}
25-
nav a {
16+
button {
17+
padding: 10px 20px;
18+
background: blue;
2619
color: white;
27-
padding: 14px 20px;
28-
text-decoration: none;
29-
}
30-
nav a:hover {
31-
background: #666;
32-
}
33-
section {
34-
padding: 40px;
35-
text-align: center;
36-
}
37-
footer {
38-
background: #222;
39-
color: white;
40-
text-align: center;
41-
padding: 10px;
42-
margin-top: 20px;
20+
border: none;
21+
border-radius: 5px;
22+
cursor: pointer;
4323
}
4424
</style>
4525
</head>
4626
<body>
47-
<header>
48-
<h1>Welcome to My Website</h1>
49-
<p>Professional | Clean | Modern</p>
50-
</header>
27+
<h1>Welcome to My Website</h1>
28+
<button onclick="sayHello()">Click Me</button>
5129

52-
<nav>
53-
<a href="#">Home</a>
54-
<a href="#">About</a>
55-
<a href="#">Projects</a>
56-
<a href="#">Contact</a>
57-
</nav>
58-
59-
<section>
60-
<h2>Hello, I'm Rutu 👋</h2>
61-
<p>This is my professional website made using GitHub Pages.</p>
62-
</section>
63-
64-
<footer>
65-
<p>© 2025 My Website | Built with ❤️ by Rutu</p>
66-
</footer>
30+
<!-- JS yahi likh diya -->
31+
<script>
32+
function sayHello() {
33+
alert("Hello Rutu! Website chal rha hai 😎");
34+
}
35+
</script>
6736
</body>
6837
</html>

0 commit comments

Comments
 (0)