The short answer
An anchor tag is the HTML <a> element that creates a hyperlink: its href attribute sets the destination, and the text between the tags is the clickable anchor text. It can link to another page, a file, an email address, a phone number or a section of the same page. Descriptive anchor text helps both visitors and search engines understand where a link goes.

What Is an Anchor Tag in HTML?
An anchor tag is the HTML <a> element used to create a hyperlink. It connects visible text or another piece of content to a URL, file, email address or location on the same page. The opening tag can carry attributes that control the destination and behavior, while the text inside tells people what they will reach.
The HTML anchor element needs an href attribute to act as a normal link. Without href, the element may still contain text but it does not provide the same keyboard behavior or link meaning.
The basic pattern looks like this:
<a href="https://example.com">Visit Example</a>
The opening tag contains the destination. The words between the opening and closing tags form the clickable anchor text. The closing tag completes the element.
Anchor Tag vs Button: Which to Use
An anchor tag gives people a way to move from the current document to another destination. That destination can be another page, a file, an email address, a phone number or a marked section on the same page. Browsers also expose links to keyboards and assistive software when the element has a valid href.
That makes an anchor different from a styled paragraph or a button. Use an anchor when the action changes location. Use a button when the action performs something on the current page such as opening a menu, submitting a form or toggling a panel.
- Anchor: Takes the visitor to a URL or document location.
- Button: Performs an action without representing navigation.
- Plain text: Communicates information without an interactive destination.
Developers sometimes use an anchor with href="#" as a fake button. That can create confusing keyboard behavior and unexpected page jumps. If the element performs an action instead of navigation, use a real button and handle the action with JavaScript.
What Anchor Tags Are Used For
Anchor tags handle most forms of navigation on the web. They connect pages inside a site, point to trusted external resources, open files, start email messages and identify specific locations within a document. Their visible text also gives readers and search engines useful context about the destination.
Common uses include:
- Internal links: Connect one page on your site to another.
- External links: Send readers to a different website.
- Fragment links: Jump to an element with a matching
id. - Email links: Open a mail application with a
mailto:URL. - Phone links: Start a call with a
tel:URL on compatible devices. - Download links: Ask the browser to download a same-origin file.
- Skip links: Help keyboard users move directly to the main content.
Internal links also help visitors find related information without returning to a menu. For example, a technical guide can point readers toward a page that explains how to check page indexing status when the discussion reaches crawl and discovery problems.
How to Use Anchor Tags
Using an anchor tag requires three decisions: choose the destination, write text that describes it and add attributes only when they serve a clear purpose. Start with a valid URL in href. Then make the visible words useful enough that a reader understands the destination without guessing.
A simple internal link might look like this:
<a href="/about">learn about our team</a>
The URL can be absolute or relative. An absolute URL includes the full domain. A relative URL points from the current site and is often easier to maintain when pages stay on the same domain.
Good anchor text should:
- Describe the page or resource that follows.
- Make sense when read without the surrounding sentence.
- Match the reader’s reason for clicking.
- Avoid vague wording such as read more or click here when a clearer phrase fits.

The Href Attribute
The href attribute tells the browser where the anchor leads. It can contain a full web address, a site-relative path, a fragment identifier or another supported URL scheme. Without href, the browser does not treat the element as a standard navigational link.
Here are common href values:
https://example.com/servicespoints to an absolute URL./servicespoints to a path on the current domain.#pricingpoints to an element withid="pricing".mailto:hello@example.comopens an email action.tel:+15551234567starts a phone action on compatible devices.
A fragment link only works when the destination page contains a matching id. For example, href="#contact" looks for an element such as <section id="contact">. The browser then moves the visitor to that location instead of loading a separate document.
Check every destination before launch. A mistyped path creates a broken link, while a missing fragment target leaves the visitor at the top of the page. These small errors add up quickly across navigation, content and footer links.
How to Create a Jump Link to a Section
A jump link (often called an anchor link) takes the visitor to a specific spot on a page instead of the top. It needs two parts: an id on the place you want to land, and a link whose href ends in # plus that id.
Jump links are for people, not rankings. In my experience they do not help a page rank; they help readers get to the part they want faster. That is not an official Google ranking factor, but I think sites that get information to people faster are more likely to be used again.
In HTML
- Add an
idto the element you want to land on. Use lowercase letters, numbers and hyphens, with no spaces, and use each id only once per page.
<h2 id="pricing">Pricing</h2>
- Link to it from the same page with the id after a
#.
<a href="#pricing">See pricing</a>
- Link to it from another page by adding the same fragment to the end of the page URL.
<a href="/services#pricing">See our pricing</a>
In the WordPress Block Editor
- Select the heading or other block you want visitors to land on.
- In the block settings sidebar, open Advanced and type a name in the HTML anchor field, for example
pricing. - Select the text you want to link, add a link, and enter
#pricingas the URL.
Test the link after publishing. If your site has a sticky header, the section can land hidden underneath it; adding scroll-margin-top to the target in your CSS leaves room for the header.
The Target Attribute
The target attribute controls where the browser opens a linked resource. The default value keeps navigation in the current tab. The _blank value usually opens a new tab, although browser settings can change that behavior. Use a new tab only when it helps the visitor keep their place.
Here is a minimal new-tab link:
<a href="https://example.com/docs" target="_blank" rel="noopener">Open the documentation</a>
A new tab can make sense for an external reference, a document or a task where the visitor needs to return to the original page. It can also confuse people who use screen readers or keyboard navigation when the change is not clear.
If you open a link in a new tab, say so in the visible text when appropriate. For example, Open the documentation in a new tab sets a clear expectation. Modern browsers provide noopener behavior for target="_blank" in many cases, but writing it explicitly keeps the intent visible in the markup.
The Rel Attribute and When to Use Nofollow
The rel attribute describes the relationship between the current page and the linked resource. It accepts space-separated values such as noopener, noreferrer, nofollow, sponsored and ugc. Choose the value based on why the link exists rather than adding it by habit.
Use noopener when a link opens in a new tab. Use noreferrer when you also want to limit referrer information. Use nofollow when you do not want to present a link as a normal editorial recommendation, such as a link in a paid placement or a relationship you cannot vouch for.
One rule for internal links: always leave them followed. Never add nofollow to a link between pages on your own site. You want to credit yourself for the link.
<a href="https://example.com/sponsored-post" rel="nofollow">Sponsored resource</a>
For paid placements, sponsored may communicate the relationship more specifically. For links added by visitors, ugc can identify user-generated content. These values describe link relationships. They do not replace good judgment about whether the destination deserves a place on the page.
Free resource
The Complete SEO Audit
One thing fixed is a start. The next question is what else on the page is holding it back, and this checks all nine in a single pass.
Other Attributes Worth Knowing: Download, Hreflang, Type
Three less common anchor attributes can still help when the link has a specific job. The download attribute suggests that the browser save a resource, hreflang identifies the language of the destination and type provides a hint about the linked resource format.
Use download for a file that visitors expect to save:
<a href="/files/guide.pdf" download="website-guide.pdf">Download the website guide</a>
The browser may still consider server headers, user settings and security rules. The attribute is a request, not a promise that every browser will handle the file in precisely the same way.
Use hreflang when the destination is written in another language:
<a href="/fr/services" hreflang="fr">Voir nos services</a>
Use type when a MIME type hint helps set expectations:
<a href="/files/manual.pdf" type="application/pdf">Read the PDF manual</a>
These attributes should support a real user need. Adding them to every link creates noise without improving the page.
Internal Anchor Text Is Where Most Sites Lose Rankings
Internal anchor text helps people and search engines understand the page behind a link. Descriptive wording gives the destination context, while vague wording hides it. The best anchor text fits naturally into the sentence and tells the reader what they will find before they click.
Compare these two examples:
<p>For more information, click <a href="/web-design">here</a>.</p><p>Learn about our <a href="/web-design">web design services</a>.</p>
The second example gives the visitor a clearer choice. It also creates a stronger relationship between the page discussing website work and the destination page that explains those services.
That does not mean every link should repeat the same keyword. Repetition can make copy awkward and can hide the difference between related pages. Write anchor text around the destination’s actual subject:
technical SEO auditfor a page about technical site checks.website indexing guidefor a page about search discovery.HTML heading structurefor a page explaining heading elements.
Keep the promise accurate. A link should not say pricing guide if it leads to a general homepage. Clear wording earns more useful clicks and gives the site a structure that visitors can follow.
In my experience, using a term in anchor text that a different page on your site already ranks well for can lead Google to pick the wrong canonical page for that term. The fix I use is to make the anchor text match the keyword the target page is meant to rank for.
When two pages on a site compete for the same keyword, I search Google using site: with the keyword after it, see which page performs best and point the internal links for that keyword at it. That page should be the main page targeting the term.
Professional insight
What I find when I audit internal links
The anchor tag mistakes I find most often on a site I take over are attributes nobody needed, and links that always point at the same page.
Screaming Frog is the best tool for the audit, and I pair it with a custom skill I built that maps every link and checks how links are distributed across the site structure. Improving internal linking has got more of my pages ranking in Google Search Console than any other SEO work I have done.

Why Small Anchor Tag Choices Add Up
Anchor tags look like the simplest thing in HTML. Open the tag, point it somewhere, close it. That is genuinely all there is to the syntax. The element stays small, but its destination, visible text and attributes shape navigation, accessibility, security and how search engines interpret relationships between pages.
What matters is the decision behind each one. Where it points. What words you use. Whether it opens in a new tab or breaks the visitor’s back button. Whether an external link should carry a nofollow. Those choices compound across a whole site, and they are the difference between a site Google understands and one it has to guess at.
Run the free audit on your current site to see how your internal linking, titles and structure are landing.
That review gives you a practical starting point before you decide whether the issue sits in your code, content or site architecture. You can use the findings to fix the pages that matter most first.
See our website design in Atlanta for service businesses, where the structure is handled before launch rather than patched after.
A useful site structure connects navigation, page content and search signals before visitors arrive. It also makes future updates easier because each page has a clear role and a sensible path to related information.
If you want the wider picture, our guide to what a sitemap is explains how one file tells Google which pages matter most.
Frequently asked questions about anchor tags
What Is the Difference Between an Anchor Tag and a Link?
An anchor tag is the HTML element that creates a link, while a link describes the connection or destination created by that element. In everyday web conversations, people often use both terms for the same clickable item, but the tag refers to the code itself.
Do Anchor Tags Still Matter for SEO?
Yes. Anchor tags help search engines discover pages and use descriptive anchor text to understand how related documents connect. Clear internal links support a site structure that people can follow, while an SEO agency in Atlanta can help find wider issues across content and technical setup.
Should Internal Links Open in a New Tab?
Usually no. Internal links normally belong in the current tab because visitors expect ordinary site navigation to preserve the browser back button and their sense of place. Use a new tab only when there is a clear reason, then explain that behavior in the link text.
How do I link to a section on the same page?
Give the target element an id, such as <section id="pricing">, then link to it with href="#pricing". The browser jumps to that element instead of loading a new page. If no element has the matching id, the visitor stays at the top.
What does href=”#” mean?
It points to the top of the current page. Developers sometimes use it to make a link act like a button, which causes page jumps and confusing keyboard behavior. Use a real button for actions instead.
Work with us
If your internal links all say read more or click here, the pages they point at get no help from them at all. Fixing what your linking structure tells Google is part of every technical SEO pass we run.
