Table of Contents

    Hyperlink and Hypertext

    Hyperlink and Hypertext
    Figure: Hyperlink and Hypertext

    WEB FUNDAMENTALS

    Hyperlink and Hypertext

    A Hyperlink is a clickable connection that links one resource to another. Hypertext is text containing one or more hyperlinks. Together, they form the backbone of the World Wide Web — enabling us to navigate seamlessly from one piece of information to another.

    Introduction

    The web isn't just a collection of separate documents — it's an interconnected network of information. What makes this possible? Hyperlinks and Hypertext.

    Every time you click a link on a website, jump to a specific section, or download a file — you're using hyperlinks. The text around these links is what we call hypertext. Together, they turn static documents into a dynamic, interconnected web.

    Key Idea: Hyperlink is a clickable connection. Hypertext is text with many links. Together, they make the Web powerful and interactive.

    Real-Life Analogy

    A hyperlink is like a signpost pointing to a destination. Hypertext is like a road map full of signposts. Just as a map guides you through different places using signs, the web guides you through information using hyperlinks embedded in hypertext.

    What is a Hyperlink?

    A Hyperlink (or simply "link") is a clickable link in a document, webpage, or application that connects to another resource.

    1

    Clickable Connection

    Interactive element

    A hyperlink is designed to be clicked. Clicking it takes you to another resource — a webpage, file, email, or specific part of a page.

    2

    Points to Another Resource

    Target destination

    Every hyperlink has a target — the resource it connects to. This can be on the same page, another page, or a different website altogether.

    3

    Can Be Text or Image

    Various formats

    Hyperlinks can be text (usually underlined and blue), images, buttons, or any other clickable element.

    Example "Click on this text to visit Google" — where "Google" is a hyperlink that takes you to google.com.

    What is Hypertext?

    Hypertext is text that contains one or more hyperlinks. It allows users to navigate from one piece of information to another by clicking on links.

    1

    Text with Hyperlinks

    Rich content

    Hypertext isn't just plain text — it contains interactive links that connect to other content.

    2

    Enables Non-linear Reading

    Freedom to explore

    Unlike a book where you read page by page, hypertext lets you jump around based on your interests.

    3

    Foundation of the Web

    HTML power

    Hypertext is the "HT" in HTML (HyperText Markup Language) — the language of the web.

    Example A Wikipedia article is a perfect example of hypertext — the text contains many links to related topics, allowing you to explore deeply.

    Key Difference: Hyperlink vs Hypertext

    Though closely related, hyperlinks and hypertext are different things.

    Feature Hyperlink Hypertext
    Definition A clickable link to another resource Text containing one or more hyperlinks
    Type A single link Collection of links in text
    Function Connects one point to another Connects multiple pieces of information
    Example "Click here" A web page with many links
    Focus Individual link Content with embedded links
    Nature Element Document/Content

    How Hyperlink and Hypertext Work Together?

    Let's understand how hyperlinks and hypertext work together to create the interconnected web.

    WORKING FLOW
    WebpageHyperlink ClickBrowser Follows LinkDestination
    1

    Webpage / Document

    Contains Hypertext

    A webpage or document contains hypertext — text with hyperlinks embedded in it.

    2

    Hyperlink

    Clickable Text or Image

    Within the hypertext, there are hyperlinks — clickable elements that lead to other resources.

    3

    Browser / Internet

    Follows the Link

    When you click, the browser follows the hyperlink through the Internet to find the destination.

    4

    Another Webpage / Resource

    Destination

    The browser loads and displays the destination webpage, file, or resource.

    Types of Hyperlinks

    There are several types of hyperlinks based on their destination and purpose.

    1. External Link

    1

    External Link

    Different website

    Links to a webpage on another website.

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

    2. Internal Link

    2

    Internal Link

    Same website

    Links to another page within the same website.

    <a href="about.html">About Us</a>

    3. Email Link

    3

    Email Link

    Opens email client

    Opens an email client to send a message.

    <a href="mailto:info@example.com">Email Us</a>

    4. Anchor Link

    4

    Anchor Link

    Specific part of the same page

    Links to a specific section within the same page (using an ID).

    <a href="#top">Go to Top</a>

    5. File Link

    5

    File Link

    Download files

    Links to a file to download (PDF, DOC, ZIP, etc.).

    <a href="file.pdf">Download PDF</a>

    6. Phone Link

    6

    Phone Link

    Initiates a call

    On mobile devices, tapping this link initiates a phone call.

    <a href="tel:+1234567890">Call Us</a>

    Types Summary Table

    Type Purpose Example
    External To another website https://www.google.com
    Internal To another page on same site about.html
    Email Opens email client mailto:info@example.com
    Anchor Same page location #top
    File Downloads a file file.pdf
    Phone Initiates a call tel:+1234567890

    Example of Hypertext

    Here's a real example of hypertext with multiple hyperlinks:

    Sample Hypertext

    The World Wide Web is a system of interlinked documents that are accessed via the Internet. It was invented by Tim Berners-Lee at CERN. HTML is the standard markup language for creating webpages. Click here to learn more about CSS. You can also visit our Contact Page.

    Every underlined word above is a hyperlink. The entire paragraph with all its links is hypertext. This is exactly how Wikipedia, news sites, and blogs work.

    HTML Code Example

    Let's see how hyperlinks are actually written in HTML.

    <p>Visit <a href="https://www.example.com">our website</a></p>
    
    <p>Email us at <a href="mailto:info@example.com">info@example.com</a></p>
    
    <p>Go to <a href="#section1">Section 1</a> on this page.</p>
    
    <p>Download <a href="file.pdf">PDF File</a></p>

    Understanding the HTML Tags

    Component Purpose
    <a> Anchor tag for hyperlink
    href Specifies the destination URL
    "..." Link value (URL or reference)
    </a> Closing tag
    Text between tags Clickable link text

    Advanced HTML Attributes

    <!-- Open in new tab -->
    <a href="https://example.com" target="_blank">Open in New Tab</a>
    
    <!-- Add title tooltip -->
    <a href="page.html" title="Learn more">Read More</a>
    
    <!-- Download attribute -->
    <a href="file.pdf" download>Download File</a>
    
    <!-- Security for external links -->
    <a href="https://external.com" rel="noopener noreferrer">External</a>

    Advantages of Hyperlinks and Hypertext

    Advantages

    • Easy navigation between pages
    • Connects related information
    • Enhances user experience
    • Access to more resources
    • Forms the backbone of the Web
    • Enables non-linear reading
    • Improves SEO (search engine optimization)
    • Facilitates learning and research

    Disadvantages

    • Broken links (404 errors)
    • Security risks (malicious links)
    • Information overload
    • Dependence on Internet
    • Distraction while browsing
    • Phishing risks
    • Link rot over time

    Real-Life Uses

    News & Blogs

    • Link to related articles
    • Source citations
    • Author profiles
    • Read more content

    Education

    • Wikipedia articles
    • Online courses
    • Reference materials
    • Educational resources

    E-Commerce

    • Product links
    • Category navigation
    • Related items
    • Reviews and ratings

    Social Media

    • Share links to posts
    • Profile links
    • External content
    • Direct messaging

    Best Practices for Using Hyperlinks

    Guidelines

    • Use descriptive link text — avoid "click here".
    • Make links visually distinct (color, underline).
    • Open external links in new tabs using target="_blank".
    • Use rel="noopener noreferrer" for security on external links.
    • Test all links regularly to avoid 404 errors.
    • Use meaningful URLs and file names.
    • Add title attributes for accessibility.
    • Ensure links are keyboard accessible.
    • Use proper anchor tags for internal navigation.
    • Avoid too many links in one paragraph.
    • Use HTTPS for security.
    • Consider SEO best practices.

    Link Security

    Not all links are safe. Follow these tips to protect yourself.

    Security Tips

    • Hover over links to see the real URL before clicking.
    • Beware of phishing links in emails and messages.
    • Check for HTTPS and padlock icon.
    • Don't click shortened URLs from untrusted sources.
    • Look out for misspelled domains (e.g., paypaI.com vs paypal.com).
    • Use browser safe browsing features.
    • Install anti-malware software.
    • Keep your browser updated.

    Did You Know?

    Interesting Fact

    The first hyperlink ever created linked to another computer at CERN in 1990 by Tim Berners-Lee! This simple click-through connection launched the World Wide Web and changed how humans access and share information forever. Today, trillions of hyperlinks connect the world's information.

    Related Terms

    Term Meaning
    URL Web address the hyperlink points to.
    HTML HyperText Markup Language — used to create hypertext.
    HTTP HyperText Transfer Protocol — how hypertext is transmitted.
    Anchor Tag The <a> HTML tag for hyperlinks.
    Href Attribute that specifies the link destination.
    Target Attribute for where to open the link (_blank, _self).
    Backlink A link from another site pointing to your site.
    Deep Link Link to a specific page or section, not the homepage.
    Broken Link A hyperlink that leads to a non-existent page (404).
    Hypermedia Hypertext extended to include images, video, and audio.

    Frequently Asked Questions

    Q1. What is the difference between hyperlink and hypertext?

    A hyperlink is a single clickable link. Hypertext is text containing one or more hyperlinks. Hypertext contains hyperlinks; hyperlinks are the connections within hypertext.

    Q2. Who invented the hyperlink?

    The modern hyperlink was implemented by Tim Berners-Lee in 1990 when he created the World Wide Web at CERN.

    Q3. What is the HTML tag for a hyperlink?

    The HTML tag for a hyperlink is the <a> (anchor) tag with an href attribute.

    Q4. Can hyperlinks be images?

    Yes! You can wrap an image in an <a> tag to make it clickable. Example: <a href="page.html"><img src="pic.jpg"></a>

    Q5. How do I open a link in a new tab?

    Use the target="_blank" attribute: <a href="..." target="_blank">Link</a>

    Q6. What is an anchor link?

    An anchor link points to a specific section within the same page, using an ID like #section1.

    Q7. What does HTTP stand for?

    HTTP stands for HyperText Transfer Protocol — the protocol used to transfer hypertext across the web.

    Q8. What is a broken link?

    A broken link (or dead link) is a hyperlink that points to a page or resource that no longer exists — usually resulting in a 404 error.

    Q9. How do I make a hyperlink safe from security risks?

    Use rel="noopener noreferrer" on external links to prevent security vulnerabilities.

    Q10. What is hypermedia?

    Hypermedia extends hypertext to include images, videos, audio, and other media types — the modern web is essentially hypermedia.

    Key Takeaways

    • Hyperlink is a clickable connection to another resource.
    • Hypertext is text containing one or more hyperlinks.
    • Types of hyperlinks: external, internal, email, anchor, file, phone.
    • The HTML <a> tag creates hyperlinks.
    • The href attribute specifies the destination.
    • Advantages: easy navigation, connects information, enhances UX.
    • Disadvantages: broken links, security risks, distraction.
    • Best practices: descriptive text, HTTPS, target="_blank" for external.
    • Invented by Tim Berners-Lee in 1990 at CERN.
    • Together, hyperlinks and hypertext form the backbone of the Web.

    Key Takeaway

    Hyperlink is a clickable connection. Hypertext is text with many links. Together, they make the Web powerful and interactive — enabling billions of users to navigate, explore, and connect across trillions of pages of information. Understanding these two concepts is essential to grasping how the modern web works.

    CONNECTING DEVICES, SHARING WORLD!

    Best of Luck! Practice more, understand web concepts better, and build amazing websites! You can do it! 😊

    Flowchart → Visual Thinking → Smart Solutions → Better Results! 🚀