Files
webstudio/docs/university/core-components/link.md
T
Oleg Isonen f1c3abf1be docs: Refresh accessible Builder screenshots at 2x (#6595)
## Outcome

Refresh the accessible low-resolution Builder documentation screenshots
with current, native 2× light and dark captures. Images retain useful
crops, descriptive alt text, and explicit display widths.

The final audit accounts for 165 candidate files: 132 refreshed, 29
inaccessible screenshots kept with the user's approval, two existing
images made 2× by setting their display width, and two Content Engine
query screenshots held because the current Builder shows a false
draft-filter type warning. Those two originals remain in place pending a
separate Builder fix and recapture. Four animated GIFs remain outside
this still-screenshot refresh.

## Review checklist

- [x] Inventory image references, native dimensions, display widths, UI
states, and source pages; audit omitted references across all docs.
- [x] Replace the approved Form pairs and accessible Builder screenshots
with matching 2× light and dark captures.
- [x] Keep inaccessible external/account/desktop and disabled Export
images, as approved.
- [x] Review size-sufficient images and GIF/diagram exclusions.
- [x] Review crops, alt text, widths, links, and source references.
Independent screenshot review passed.
- [x] Check the full docs image inventory: 322 placements, 284 unique
assets, zero missing files. The only unaccounted sub-2× refs are four
excluded GIFs.
- [x] Run `git diff --check` and verify all 204 changed image files are
referenced; 117 changed picture placements have matching themes and at
least 2× native width.
- [x] Verify required PR checks: Lint PR, Check submodules, Visual
regression, and Main workflow all passed at 14937127db.
- [ ] Recapture the two Content Engine query images after [Builder fix
#6597](https://github.com/webstudio-is/webstudio/pull/6597) reaches the
Builder used for capture. Keep their originals until then.\n- [ ]
Confirm GitBook rendering at intended CSS widths after publication. This
repository has no PR preview.

## Held images

`content-engine-overview-query.png` and
`content-engine-article-query.png` are unchanged. The current Builder's
query form reports a false type warning for the Boolean
`properties.draft` filter. Screenshotting that state would teach a
broken workflow. The user approved a separate [Builder query type fix in
PR #6597](https://github.com/webstudio-is/webstudio/pull/6597). Once
that fix is reviewed, the two screenshots can be recaptured from the
corrected UI. This PR does not change application code.

All captures use synthetic content. No release or publication branch is
changed.
2026-10-25 10:11:58 +01:00

4.9 KiB
Raw Blame History

description
description
Link lets you link to websites, pages, emails, and more from text, images, and more.

🔗 Link

See MDN: <a>

{% embed url="https://www.youtube.com/watch?v=XPzFZ67zRrU" %}


The "Link Component" can be found in Components > General, and you can place it on your canvas by dragging and dropping it or clicking it in the Components panel.

You can convert anything into a link by wrapping it inside the Link component, including text and images. These links can direct users to different pages within your site or lead to external resources, including other websites, downloadable files, or email addresses.


You can customize the properties of a Link instance by selecting it and going to "Settings." Here is an overview of each property:

Href

Link settings with destination type choices and Href field

The "href" property determines what the Link instance will lead to, such as a URL, page, phone, attachment, or email address.

  1. URL: In its most common form, the "href" property references a URL, linking to another website or page.

  2. Page: You can link to all of your pages within your site here. You can also link to specific sections within those pages. To link to a section on a page, first go to the section and fill out the ID field in Settings. Then go back to the link, select the page, and then in the next dropdown select the ID you just created. Like this:

    Section settings with an ID entered as the anchor destination

    First add the ID to the section you want to link to

    Link destination picker with a section selected on the current page

    Then add a page link and select the section.

  3. Email: When you specify an email address as the 'href' value, the link opens the user's default email client (such as Gmail) with the designated email address pre-filled.

  4. Phone: If you set the "href" property to a phone number, the link becomes a prompt for users to initiate phone calls directly from their devices.

  5. Attachment: You can also link to downloadable attachments such as PDFs, documents, or media files, allowing users to initiate file downloads with one click.

Target

The target property controls where the link opens. Choose one of these values:

  1. _self: Opens the link in the same tab. This is the default.
  2. _blank: Opens the link in a new tab or window.
  3. _parent: Opens the link in the parent browsing context. This is mainly useful inside nested frames.
  4. _top: Opens the link in the top-level browsing context, replacing any frames.

To open a link in a new tab, set Target to _blank.

Prefetch

The "Prefetch" property enables near-instant page transitions by preloading linked pages before the user clicks. This dramatically improves perceived navigation speed.

  1. Intent: The browser loads the destination page when the user hovers over the link. This is ideal for most links as it balances performance with resource usage.
  2. Render: The browser loads all destination pages as soon as the current page renders. Best for simple pages or funnels with very few links.
  3. Viewport: The browser loads the destination page when the link enters the user's viewport. Good for links that appear below the fold.

For most websites, use "Intent" or "Viewport" to provide fast navigation without overloading the browser with pages to preload.

You can add any Webstudio component inside a Link element to make it clickable — images, videos, text, buttons, or even custom HTML embeds. Simply drag the component into the Link or wrap existing content by selecting it and using the Link component.

How to style the current page state

When using links for navigation and wanting to highlight the current page, the link component has a "Local Link" state in every style source.

Style sources menu with the local-link state