(9/10)

Pro Access Required

This is a premium lesson. Upgrade to Pro to unlock this interactive exercise and continue your learning journey.

🌐HTML

Progressive Enhancement

0 WPM
0% Accuracy
0:00 Time elapsed
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
<!-- Basic HTML that works everywhere -->
<p>Subscribe to our newsletter: <a href="mailto:newsletter@typy.com">newsletter@typy.com</a></p>
<!-- Enhanced with modern features -->
<noscript>
<p>JavaScript is disabled. Please enable it for the best experience.</p>
</noscript>
<form action="/subscribe" method="post" id="newsletter-form">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<button type="submit">Subscribe</button>
</form>
<picture>
<source media="(min-width: 800px)" srcset="hero-large.jpg">
<source media="(min-width: 400px)" srcset="hero-medium.jpg">
<img src="hero-small.jpg" alt="Typy's coding adventure">
</picture>
<script>
// Progressive enhancement
const form = document.getElementById('newsletter-form');
form.addEventListener('submit', function(e) {
e.preventDefault();
// AJAX submission for modern browsers
console.log('Form submitted with JavaScript!');
});
</script>
0 / 1003
👆
Hold This!
Press This!
👇
`~
1!
2@
3#
4$
5%
6^
7&
8*
9(
0)
-_
=+
Q
W
E
R
T
Y
U
I
O
P
[{
]}
\|
A
S
D
F
G
H
J
K
L
;:
'"
Z
X
C
V
B
N
M
,<
.>
/?
Thumb
Index
Middle
Ring
Pinky