topskill.dev
CoursesTracks
0
All courses/Introduction to HTMLProject 1 - Visiting Card Actions
Project - Visiting Card
2 / 3
← Introduction to HTML
○What Is HTML? See Tags in Action○Build the Meridian Signal○Complete HTML5 Page Structure○Build a Complete HTML5 Page✦Module Quiz
○Heading Hierarchy: H1 and H2○Extend the Signal Brief○Paragraphs and Inline Tags○Write Meridian's Survey Notes○List Types: Steps, Items, and Terms○Build a Crew Member Loadout○Challenge: Transmit a Rescue Signal✦Module Quiz
○Hyperlinks○Links between project files○Images○Applying Styles to HTML✦Module Quiz
○Div and Span○HTML Tables○Classes and IDs○Review: Structured Profile✦Module Quiz
○Project 1 - Visiting Card Structure●Project 1 - Visiting Card Actions✦Module Quiz
○The Head Element and Page Title○Meta Tags○HTML Entities✦Module Quiz
○Form Basics: Join the Meridian Relay○Build a Night-Shift Check-In○Input Types: Build a Mission Profile○Record Beacon Maintenance○Choice Controls: Select Training Modes○Plan a Supply Pickup○Response Controls: Send a Mission Reply○Build a Rescue Dispatch Report○Form validation and submission○Challenge: Send an Emergency Beacon✦Module Quiz
○Project 2 - Contact Us Form Structure○Project 2 - Contact Us Form Actions✦Module Quiz
○Embedding Video○Embedding Audio○Iframes✦Module Quiz
○Semantic HTML Tags○Details, Figure, and Figcaption○A keyboard-friendly page✦Module Quiz
○Project 3 - Resume Semantic Structure○Project 3 - Resume Links and Actions✦Module Quiz

Project 1 - Visiting Card Actions

Project 1: Visiting Card (Links and Actions)

Riya’s portrait and contact list are carried forward from the previous lesson. Keep that card and edit only the empty action area in index.html. If you brought your own contributor forward, use their displayed email and phone details in the links.

Add email, phone, portfolio, and invitation links so visitors can tell what each action would do. You do not need to activate external links or contact anyone.

Link to an action

An anchor can open an email app or phone app when its href starts with mailto: or tel:. For this exercise, write the phone link with digits and an optional leading +; leave spaces and punctuation in the visible contact list, not in the link.

html
<a href="mailto:[email protected]">Email Samira</a>
<a href="tel:5550100">Call Samira</a>

For a portfolio on another site, use its complete URL. Links normally stay in the same tab; this project asks you to request a new tab with target="_blank". Modern browsers give ordinary _blank links implicit noopener behavior. We write rel="noopener" explicitly to state that intent; adding noreferrer also omits referrer information. This project asks for both tokens, but withholding the referrer is a separate privacy choice.

html
<a href="https://example.com" target="_blank" rel="noopener noreferrer">View portfolio</a>

The supplied <nav> groups the action links; aria-label gives that group a name for assistive technology. You will study these semantic elements later. Use words that describe the destination or action. A call-to-action can still be an ordinary anchor; its label should tell the visitor what happens next.

html
<a href="mailto:[email protected]">Ask about a map project</a>

Check your page

Run the page and inspect the links. The email link should begin with mailto:, the phone link with tel:, and the external portfolio link should open in a new tab. If a link is plain text, make sure it is inside <a> and has an href.

Your Task

  1. In the supplied card’s <nav>, add an email link whose mailto: address matches the contact list.
  2. Add a phone link whose tel: number matches the contact list (digits, optionally starting with +).
  3. Add an HTTPS portfolio link that opens in a new tab with target="_blank" and rel="noopener noreferrer".
  4. Add a separate invitation link with class="contact-invitation", an invitation of at least two words, and a non-empty mailto:, tel:, or HTTPS destination.

Submit to check your links. You do not need to open an email or phone app or contact anyone. The example.com portfolio is a placeholder, not Riya’s real website.

Hint 1
1 / 2
HINT 1

Use anchor links for email (mailto:) and phone (tel:).

HINT 2

For this portfolio link, use target="_blank" to request a new tab.

Take the Quiz →
Files
  • ⋄index.html
Loading editor…