Skip to content
    SeaCode
    Learning tracksCode ArenaWorkshops & EventsInstructors
    Log inSign up
    </>HTML

    Document foundations

    • What is HTML?
    • Metadata and language
    • Attributes and character references
    • Headings, paragraphs and formatting

    Content and media

    • Links
    • Images
    • Lists
    • Tables
    • Responsive images and media

    Forms

    • Forms and inputs
    • Grouping form controls
    • Form validation and submission

    Structure and accessibility

    • Semantic HTML
    • Keyboard and screen-reader access
    • Disclosure with details
    • Project: your profile page
    HTML

    Content and media · Lesson 5 of 16

    Links

    Connect pages with <a>.

    6 minutes3 games

    Links use <a>, and where they go is in an attribute called href. Attributes are extra information written inside the opening tag: name="value".

    HTML
    <p>Visit <a href="https://www.seacode.tech">SeaCode</a> to learn more.</p>
    <p><a href="https://www.wikipedia.org" target="_blank">Wikipedia</a> opens in a new tab.</p>
    <p><a href="mailto:hello@example.com">Email us</a></p>

    Important

    Use links for navigation and buttons for actions. Descriptive link text is better than “click here”.

    Interview question

    Where does href="#details" go?

    target="_blank" opens the link in a new tab. Use it for other sites only.

    Complete the code

    Complete the link so it goes to google.com.

    <a ="https://google.com">Google</>

    Quick question

    You want a link to open in a new tab. What do you add?

    Exercise

    Make a link that says GitHub and goes to https://github.com.

    HTML

    Learn more from

    • MDN: HTML referencedeveloper.mozilla.org
    • web.dev: linksweb.dev

    Played 0 of 3 games

    Sign in to save your progress and earn XP.

    PreviousHeadings, paragraphs and formattingNextImages
    SeaCode

    Learn to code for real, online or at our branch in front of Cairo University, Giza.

    Learn

    • All courses
    • Interactive tutorials
    • Interview practice problems
    • Mock interview
    • Learning tracks
    • Code Arena
    • Workshops & Events
    • Knowledge library
    • Team projects

    Your account

    • Log in
    • Sign up
    • Learning plan
    • Certificates
    • Site map

    Contact us

    • WhatsApp
    • 010 9094 1104
    • In front of Cairo University, Giza

    © 2026 SeaCode. All rights reserved.