HTML Email Links — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the HTML Email Links lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Add an email link
easy10 minLink "Email us" to hello@example.com using mailto.
- 2
Prefill a subject
easy10 minAdd a mailto link with the subject "Hello".
- 3
Show the address as the text
easy10 minUse the address itself as the visible link text.
- 4
Add a phone link
easy10 minLink a phone number using the tel scheme.
- 5
Combine subject and body
medium10 minAdd a mailto link with both a subject and a body.
Find the bug(5)
- 1
Fix the missing mailto scheme
easy8 minWithout mailto: this is treated as a relative page.
- 2
Fix the space in the scheme
easy8 minThere must be no space after mailto:.
- 3
Fix the wrong separator
easy8 minThe subject parameter needs a ? not a slash.
- 4
Fix the tel scheme
easy8 minPhone links use tel:, not phone:.
- 5
Fix the empty email link
easy8 minThe link has a scheme but no address.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace