-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
206 lines (184 loc) · 4.62 KB
/
index.html
File metadata and controls
206 lines (184 loc) · 4.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Practice Project</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
background: #f9f9f9;
color: #333;
}
header {
background: #0e0b28;
color: #fff;
text-align: center;
padding: 20px;
}
nav a {
color: #fff;
margin: 0 10px;
text-decoration: none;
font-weight: bold;
}
main {
max-width: 1000px;
margin: auto;
padding: 20px;
}
section {
background: #fff;
margin-bottom: 20px;
padding: 20px;
border-radius: 12px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
h2 {
color: #0e0b28;
}
img.responsive {
max-width: 100%;
height: auto;
border-radius: 8px;
}
table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
}
table, th, td {
border: 1px solid #ccc;
padding: 8px;
text-align: center;
}
.card {
border: 1px solid #ddd;
border-radius: 8px;
padding: 15px;
margin: 10px 0;
background: #fafafa;
}
footer {
background: #eee;
text-align: center;
padding: 15px;
margin-top: 20px;
}
button {
background: #0e0b28;
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 8px;
cursor: pointer;
}
button:hover {
background: #1c1654;
}
</style>
<script>
function showMessage() {
alert("Hello! You clicked the button 🚀");
}
</script>
</head>
<body>
<header id="main-header">
<h1>🌐 HTML Practice Project</h1>
<nav>
<a href="#about">About</a>
<a href="#media">Media</a>
<a href="#team">Team</a>
<a href="#contact">Contact</a>
</nav>
</header>
<main>
<!-- About Section -->
<section id="about">
<h2>About This Project</h2>
<p>This project is a <b>practice website</b> that combines <i>all HTML basics</i> and advanced features taught in <u>Day 1 and Day 2</u>.</p>
<p>Example of colors: <span style="color:red;">Red</span>, <span style="color:green;">Green</span>, <span style="color:blue;">Blue</span>.</p>
<p>Special symbols: © € ♥ 😀 🚀 ❤️</p>
</section>
<!-- Media Section -->
<section id="media">
<h2>Media Examples</h2>
<h3>Image</h3>
<img src="day 1/man.png" alt="Sample" class="responsive">
<h3>Video (YouTube Iframe)</h3>
<iframe
width="400"
height="250"
src="https://www.youtube.com/embed/_vZOEQCYSaY"
title="YouTube Video"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
<h3>Google Maps (Iframe)</h3>
<iframe width="400" height="250" src="https://maps.google.com/maps?q=cairo&t=&z=13&ie=UTF8&iwloc=&output=embed"></iframe>
</section>
<!-- Team Section -->
<section id="team">
<h2>Our Team</h2>
<div class="card">
<h3 class="team-name">John Doe</h3>
<p>Web Developer</p>
</div>
<div class="card">
<h3 class="team-name">Jane Smith</h3>
<p>UI/UX Designer</p>
</div>
</section>
<!-- Table & List -->
<section>
<h2>Table & List Examples</h2>
<table>
<tr><th>Language</th><th>Level</th></tr>
<tr><td>HTML</td><td>Beginner</td></tr>
<tr><td>CSS</td><td>Intermediate</td></tr>
</table>
<h3>Shopping List</h3>
<ul>
<li>Milk</li>
<li>Bread</li>
<li>Cheese</li>
</ul>
</section>
<!-- JavaScript Example -->
<section>
<h2>JavaScript Example</h2>
<button onclick="showMessage()">Click Me</button>
</section>
<!-- Code & Entities -->
<section>
<h2>Computer Code & Entities</h2>
<pre>
function hello() {
console.log("Hello World!");
}
</pre>
<p>Keyboard shortcut: <kbd>Ctrl</kbd> + <kbd>C</kbd></p>
<p>URL Encode: Space = %20, © = %C2%A9</p>
</section>
<!-- XHTML Comment -->
<section>
<h2>HTML vs XHTML</h2>
<!--
XHTML requires:
- lowercase tags
- attributes must be quoted
- empty elements must be closed <br />
-->
<p>This page uses HTML5 but XHTML requires stricter rules.</p>
</section>
</main>
<footer>
<p>Made with ❤️ in 2025 | © All Rights Reserved</p>
</footer>
</body>
</html>