Hyperlink in HTML
Hyperlink in HTML
In HTML, hyperlinks are created using the `<a>` tag (short for "anchor").
`href` (Hypertext REFerence): The destination URL (where the link goes).
🌐 Real-Life Example
Imagine you are creating a personal portfolio website. On your homepage, you want to
add a link to your LinkedIn profile and to another internal page like "Contact Me".
Example Code:
<h1>Welcome to My Portfolio</h1>
</body>
</html>
2. Internal Link:
Would you like a simple slide or diagram to help explain this in class visually?
Sure! Here's a simple 2–3 minute classroom script in easy language that you can use
to explain working with hyperlinks in HTML to your classmates:
A hyperlink is a clickable text or image that takes us from one page to another. You all
use it every day — like when you click on a link in Google search, or when you click on
'Contact Us' on a website.
In HTML, we use the `<a>` tag to create a link. It looks like this:
For example:
If I put this in my webpage, and someone clicks ‘Go to Google’, it will open Google.
2. Internal links – these go to other pages of your own website, like a contact page.
You can also use a small extra part like `target="_blank"` to open the link in a new
tab. Like this:
So to sum up: