liveBook · Manning

Link element

Also called link tag

The HTML link element declares a relationship between a document and an external resource, such as a stylesheet or icon.

How 3 Manning books explain it

Web Design Playground

An HTML element that defines a link to an external resource and can also connect a document to a stylesheet or other relationship via attributes.

How it is used
Connects a page to an external style sheet or a hosted font resource through a link in the head.
How deep it goes
Shows link syntax and several href paths, then walks through pasting a font-host link; does not examine browser internals.
Examples
Uses same-directory, subdirectory, root-relative, and remote stylesheet links, plus a Google Fonts link for Lato.
What you can do after
Operate/configure it by placing a stylesheet or font-host link in the head and choosing an appropriate href.

Read how Web Design Playground explains link element →

Web Design Playground, Second Edition

The HTML link element declares a relationship between the current document and an external resource such as a style sheet or hosted font resource.

How it is used
Attaches external stylesheets or hosted font resources to an HTML page through its head section.
How deep it goes
Explains relationship and path attributes, placement, several URL forms, shared CSS benefits, and hosted-font trade-offs.
Examples
Uses local CSS paths, a remote stylesheet URL, and Google Fonts links for the Lato typeface.
What you can do after
Apply it via HTML to attach shared CSS files and hosted fonts in a page head.

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

Build a Website with ChatGPT

A link element is an HTML element that declares a relationship between a document and an external resource such as a stylesheet.

How it is used
Connects an HTML page to CSS files and external fonts while building generated websites.
How deep it goes
Defines href and rel through working snippets, but stops short of browser loading internals.
Examples
Uses styles.css, Google Fonts URLs, index.html, and a generated information website home page.
What you can do after
Apply it via HTML to connect a page with a stylesheet or external font resource.

Read how Build a Website with ChatGPT explains link element →

Also covered in

What to know first

Related concepts

Questions about link element

What is link element?

The HTML link element declares a relationship between a document and an external resource, such as a stylesheet or icon.

Which Manning books explain link element?

Web Design Playground, Web Design Playground, Second Edition and Build a Website with ChatGPT.

What should I know before learning link element?

Manning books that teach link element usually introduce HTML, CSS, bold and head element first.

What are the parts of link element?

Link element includes href and rel attribute.

What is link element also called?

Link element is also called link 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.