📚 College Credit Guide ✓ UPI Study 🕐 11 min read

What Are Links and Hyperlinks in HTML?

This article explains how HTML links work, from anchor tags and href to relative URLs, section jumps, new tabs, and safer, more accessible link writing.

US
UPI Study Team Member
📅 June 17, 2026
📖 11 min read
US
About the Author
The UPI Study team works directly with students on credit transfer, degree planning, and course selection. We've helped thousands of students figure out what counts toward their degree and how to finish faster without paying more than they have to. This post is written the way we'd explain it to you directly.
🦉

HTML links and hyperlinks are the clickable pieces that move users from one page to another, from one site to another, or from one spot on the same page to another spot. In HTML, the main element you write is the anchor tag, , and the destination lives in its href attribute. The common mistake is simple: beginners think a hyperlink is some separate trick, while the browser treats it as a link created by an anchor tag with a destination. That matters because the text a person sees and the URL the browser follows are not the same thing. One is the label. The other is the target. You see this all the time on menus, course pages, footers, and article tables of contents. A small line of text can send a user to a product page, a lesson, or a section lower on the same page. A well-made link feels tiny, but it does a lot of work in 1 click. The bad habit to avoid is guessing. If you know what the anchor tag does, how href points to a page, and how relative and absolute URLs differ, the rest gets much easier. That matters whether you are building a class project, a portfolio site, or your first page in an online course.

A person using a laptop to browse stock photo websites. Freelancing work in a cozy setting — UPI Study

The phrase are links and hyperlinks in html usually points to the same thing: a clickable anchor element that sends the browser somewhere else in 1 click. People often separate the words, but HTML does not; it treats both as navigation, whether the target is a page, a site, or a section on the same page.

The catch: Many beginners think “hyperlink” means a fancy version of a link, but in HTML the anchor tag does the real work every time. That tag appears in the HTML 5 standard, and browsers like Chrome and Safari read it the same basic way.

A link can move someone to https://example.com, to a PDF, or to a heading lower on the page with a hash like #contact. That flexibility matters because a good page often uses 3 or 4 kinds of links in one layout, not just one style.

The mistake I see most is students writing plain text and expecting it to act like a link. Text alone does nothing. You need around it, or the browser sees only words, not a destination.

A link also has a job in user flow. It tells someone where the next step goes, and that makes a page easier to scan. Weak links feel vague. Strong links feel specific, and that difference shows up fast on a course site, a blog, or a school homepage.

Reality check: A link is not magic. It is a path, and if the path is broken, the click goes nowhere or lands on the wrong file.

How Does the Anchor Tag Use href?

The element creates the link, and href gives it a destination, so the browser knows exactly where to go after 1 click. If href points to a page in 2026, a file, or a section marker, the anchor text becomes the visible label and the URL becomes the target.

Basic syntax looks like this: Visit site. The words between the tags say what the user sees, while the href value tells the browser where to send them. That split matters, because “Visit site” is not the same thing as the actual web address.

You can also link images, not just words. Put the tag inside an anchor tag, and the whole image becomes clickable. That shows up on home pages, headers, and course cards in layouts with 2 or 3 featured items.

What this means: If you change the text from “Home” to “Start Here,” the click target still works the same way, because href controls the destination, not the label. I like that design because it keeps content flexible, but it also makes sloppy URL writing easy to miss.

A broken href gives you a dead end, and students blame the browser when they should blame the path. One missing character, like a slash or a quote, can wreck the link. That is why careful syntax beats guesswork every single time.

If you are exploring links hyperlinks and blank targeting in html, start with the anchor tag first and get the destination right before you worry about style or animation.

Which URLs Are Relative or Absolute?

A URL can be absolute or relative, and the difference matters every time you build a page with more than 1 file. Absolute URLs use the full address, while relative URLs point to a path inside the same site, like a folder or file.

Bottom line: If the file lives in your project, a relative URL usually feels cleaner; if it lives elsewhere, an absolute URL is safer and more obvious.

Introduction To Html Css UPI Study Course

Learn Introduction To Html Css Online for College Credit

This is one topic inside the full Introduction To Html Css course on UPI Study — a self-paced, online class that earns real college credit. Credits are ACE and NCCRS evaluated and transfer to partner colleges across the US and Canada. Courses start at $250 with no deadlines and lifetime access.

Explore HTML CSS Course →

Section links let you jump to a spot on the same page, and they work with 2 parts: an id on the target and a hash in the href. That makes table of contents links, FAQs, and long lesson pages much easier to use.

  1. Add an id to the section you want to reach, like <h2 id="faq">. The id must be unique on the page, so do not reuse it 2 times.
  2. Make the link with a hash, like <a href="#faq">Jump to FAQ</a>. The hash tells the browser to stay on the same page and move to that spot.
  3. Click the link, and the browser scrolls to the matching id in about 1 second or less on a normal page. That is faster than asking users to hunt through 20 paragraphs.
  4. Use this for tables of contents, chapter lists, or lesson menus on pages with 4 or more sections. It saves time and cuts confusion.
  5. Do not confuse this with a separate-page link like about.html. A section jump stays on the same document, while a file link loads a new one.

Worth knowing: A section link can make a long page feel shorter without changing the content at all. That is a smart trick, and it works because the browser reads the id as a target, not decoration.

Opening a link in a new tab with target="_blank" can help when users need to keep the current page open, like comparing 2 pages side by side or keeping a lesson visible while checking a reference. It should stay a choice, not a habit, because surprise new tabs can throw people off, especially on phones or when someone already has 12 tabs open. That matters more than most beginners think.

Reality check: New tabs solve a real problem, but they also create one if you use them on every link. My take is blunt: use them sparingly and only when the user gains something obvious.

Accessible links help people understand where a click will go before they press Enter, Tab, or Space, and that matters for screen readers, keyboard users, and anyone scanning a page in 10 seconds or less. Clear link text beats vague text every time.

“Click here” is weak because it gives no destination. “Download the syllabus PDF” or “Read the HTML reference” tells the user what will happen, which helps people who use VoiceOver, NVDA, or a keyboard alone. That kind of wording also helps a person skimming 30 links on a busy page.

Focus states matter too. When a user tabs through a page, the active link should show a visible outline or highlight, not disappear into the design. I like a strong focus style because it proves the page still works without a mouse, and that is a real test, not a theory.

This matters on pages about study online, college credit, transferable credit, or ace nccrs credit because users often compare 2 or 3 options before they click. If the link text says the destination clearly, the page feels calmer and smarter. If it says nothing useful, people hesitate.

One more problem: tiny links with no space around them are hard to hit on a phone. A tap target around 44 pixels gives users a fair shot, and that small detail can stop a lot of frustration.

Frequently Asked Questions about HTML Links

Final Thoughts on HTML Links

HTML links look small, but they shape how a page feels and how people move through it. One anchor tag can send a user to another site, another file, or a section 3 screens lower, and the difference between relative and absolute URLs decides whether your project stays tidy or turns messy fast. The most common student mistake is treating the visible words as the link itself. They are not. The href value does the real work, and the anchor text just tells the user what they will get when they click. That single split explains most broken links, weird tab behavior, and sloppy page structure. A clean link also respects the person using it. Clear text, visible focus, and sane use of target="_blank" make a page easier to trust, especially on long pages with 10 or more links. That is not decoration. That is basic web craft. If you are building your first HTML page, start with one good link, then test it on a phone and a laptop. After that, add a section jump, an external URL, and a new-tab link only where they actually help.

How UPI Study credits actually work

Ready to Earn College Credit?

ACE & NCCRS approved · Self-paced · Transfer to colleges · $250/course or $99/month

© UPI Study. This article and its educational content are solely owned by UPI Study and licensed under CC BY-NC-ND 4.0. It is not free to reuse or modify. Any citation must credit UPI Study with a direct link to this page.