liveBook · Manning

Anchor element

Also called a element, a tag, anchor tag

An anchor element is an HTML element that represents a hyperlink or navigation target, typically linking content to another resource or location.

How 4 Manning books explain it

WordPress Power Toolkit: Harness AI to build next-level websites

An anchor tag is the HTML element that defines a hyperlink and its linked content.

How it is used
Creates clickable website links, including links that jump to a particular paragraph on another page.
How deep it goes
Explains opening and closing tags, href, link labels, and fragment IDs through an editable example, without going into browser internals.
Examples
Uses a recipe-page link that jumps directly to a paragraph, then checks the result in the site’s frontend view.
What you can do after
Build it from scratch with HTML markup, save the page, and test that the link reaches its target.

Read how WordPress Power Toolkit: Harness AI to build next-level websites explains anchor element →

Web Design Playground, Second Edition

The HTML a element creates a hypertext link around content.

How it is used
Creates local, remote, and in-page links within HTML pages.
How deep it goes
Defines paired tags and href, demonstrates local and remote addresses, and extends to in-page links; defers multi-directory details.
Examples
Uses wordplay.html, a webdesignplayground.io address, and linked words such as “scofflaw” and “Frankenfood.”
What you can do after
Build it from scratch by wrapping content in a tags and assigning href values for local or remote destinations.

Read how Web Design Playground, Second Edition explains anchor element →

Pro ASP.NET Core 7, Tenth Edition

An anchor element is an HTML element that creates a hyperlink to a specified resource or URL.

How it is used
Builds navigational links whose destinations follow ASP.NET Core routing rather than hard-coded paths.
How deep it goes
Explains attribute selection, route values, rendered hrefs, browser verification, and URL generation, but not tag-helper internals.
Examples
Uses product-list rows, Select links, Suppliers links, route identifiers, rendered hrefs, and a Razor Pages product listing.
What you can do after
Builds routing-aware links and verifies their rendered URLs and GET behavior in a browser.

Read how Pro ASP.NET Core 7, Tenth Edition explains anchor element →

Web Design Playground

An HTML element that represents a hyperlink and, in markup, is typically rendered with anchor syntax.

How it is used
Creates hyperlinks to pages on the same site, pages elsewhere, or sections of the current page.
How deep it goes
Explains opening and closing tags, href destinations, link text, URL types, and capitalization risks, while deferring in-page implementation.
Examples
Uses wordplay.html, wordspy.com, etymonline.com, and wordspy.com word links as concrete anchor examples.
What you can do after
Apply it via HTML markup to connect visible text with local filenames or remote URLs.

Read how Web Design Playground explains anchor element →

Also covered in

What to know first

Related concepts

Questions about anchor element

What is anchor element?

An anchor element is an HTML element that represents a hyperlink or navigation target, typically linking content to another resource or location.

Which Manning books explain anchor element?

WordPress Power Toolkit: Harness AI to build next-level websites, Web Design Playground, Second Edition, Pro ASP.NET Core 7, Tenth Edition and Web Design Playground.

What should I know before learning anchor element?

Manning books that teach anchor element usually introduce HTML, HTML tag, CSS and handler first.

What is the difference between anchor element and button?

An anchor element is an HTML element that represents a hyperlink or navigation target, typically linking content to another resource or location. A button is an interactive user-interface control that a user can activate to initiate an action or select an option.

What is anchor element also called?

Anchor element is also called a element, a tag or anchor tag.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.