Professional Business Website · Phase 2 · Lesson 3 of 3
A Contact Section That Works Without a Server
Build the contact page with WhatsApp, phone, email and map links that work on any phone, because a static site cannot process form submissions itself.
What you need
A computer (Windows, macOS or Linux) with Visual Studio Code (free) and a current web browser such as Chrome or Firefox. A smartphone is used for testing. A smartphone with WhatsApp for testing.
In this lesson you will
- Create WhatsApp, telephone, email and map links
- Explain why a static site needs no form server for this project
Key concepts
tel linkmailto linkWhatsApp click-to-chatmap linkstatic site
The lesson
A static website has no server code, so a normal form cannot send messages by itself. For small businesses, direct links are simpler and more reliable: a WhatsApp click-to-chat link with a pre-filled message, a tel: link for calls, a mailto: link for email, and a link to the location on a map app.
A WhatsApp link uses the international number without plus signs or spaces, followed by an optional encoded message. Test every link on a real phone.
Show the address, landmarks and opening hours as text too, because some customers will not use the links. Never publish personal phone numbers without the owner's permission.
Step by step
- Add the business address, landmarks and opening hours to contact.html.
- Create WhatsApp, phone and email links with the owner's approved contacts.
- Add a map link to the shop's location.
- Test every link on a phone and fix any that fail.
Practice activity
Build the contact page and a contact strip for the home page, and record a phone test of every link.
Expected result: A contact page whose WhatsApp, call, email and map links all work on a phone.
Common mistakes
- Writing the WhatsApp number with a plus sign, spaces or a leading zero
- Testing links only on the computer, not on a phone
Check your understanding
-
Why does this project use links instead of a contact form?
Show answer
A static site has no server to process form submissions; direct links are simpler and reliable.
-
What must you get before publishing a phone number?
Show answer
The owner's permission.
Further learning
Projects are instructor-guided: an instructor sets milestones, checks your work and gives feedback, online or in person. Self-study of the public lessons does not lead to a certificate. Enrolment and fees follow the Academy's existing policies — contact the Academy.