What makes something a link

A link is text or an image that, when clicked, takes you somewhere else — usually another web page, a file, or an email address. The thing that makes it a link is HTML code wrapped around it. That code tells the browser "this is clickable" and "send the person here when they click it."

You do not need to write HTML by hand. Most tools you already use — Google Docs, WordPress, Notion, email clients — have a button or menu option that does this for you. The button usually looks like a chain link or says "Link". But understanding what is actually happening underneath helps you troubleshoot when something does not work.

Key Takeaways

  • Every link needs a destination (the URL or email address) and anchor text (what the reader sees and clicks).
  • In most tools, you highlight the text or image you want to turn into a link, then use the Link button or Ctrl+K (Windows) or Cmd+K (Mac) to paste the destination.
  • Email links use a different format (mailto:) than web links, and your tool usually handles this automatically when you paste an email address.
  • A link only works if the destination URL is complete and correct — missing the https:// or a typo in the domain breaks it silently.

How to create a link in Google Docs, Sheets, and Slides

Highlight the text or image you want to turn into a link. Then press Ctrl+K on Windows or Cmd+K on Mac. A small dialog box appears asking for the destination. Paste the full URL (starting with https://) or type it in. Click Apply or press Enter.

If you are linking to a Google Doc, Sheet, or Slide that you own or have access to, you can search for it by name instead of pasting a URL. Type the name of the document in the search field, and Google will find it and auto-fill the link. This is faster and less error-prone than copying and pasting a long URL.

To remove a link, highlight it again, press Ctrl+K or Cmd+K, and click the trash icon or Remove Link button.

How to create a link in WordPress and other website builders

The process is nearly identical in WordPress, Wix, Squarespace, and most other website builders. Highlight the text or image, then click the Link button in the toolbar. It usually looks like a chain link icon. A dialog box opens where you paste the destination URL.

In WordPress specifically, you can also search for internal links — pages and posts on your own site — by name. Type the page title in the search field, and WordPress will show matching pages. Click the one you want, and WordPress fills in the correct URL automatically. This is useful when you are linking to your own content and the URL might change later.

Some website builders let you link to different types of destinations: external websites, pages on your own site, email addresses, phone numbers, or downloadable files. The dialog usually has tabs or a dropdown to choose the type. Select the right one before pasting the destination.

How to create a link in email and messaging apps

Gmail, Outlook, Apple Mail, and most messaging apps work the same way. Highlight the text, press Ctrl+K or Cmd+K, and paste the URL. For email addresses, you can paste the full email address or type mailto: followed by the address — most apps convert it automatically.

Some email clients have a separate button for email links. If you see an @ symbol or envelope icon in the toolbar, that is usually the email link button. Click it, type the email address, and the app wraps it in the correct format.

Slack, Microsoft Teams, and Discord also support links. Highlight text and use Ctrl+K or Cmd+K, or right-click and look for a Link option in the context menu.

How to create a link in HTML if you are writing code

If you are writing HTML directly, a link looks like this: <a href="https://example.com">Click here</a>. The href attribute holds the destination URL. The text between the opening and closing tags is what the reader sees and clicks on.

For an email link, use <a href="mailto:name@example.com">Email me</a>. The mailto: prefix tells the browser to open the user's email client instead of loading a web page.

To link to an image instead of text, replace the text with an image tag: <a href="https://example.com"><img src="image.jpg"></a>. When someone clicks the image, they go to the destination URL.

Why links sometimes do not work

The most common reason a link does not work is a typo or incomplete URL. If you paste https://example.com but the real site is https://www.example.com (with www), the link will break. Check the URL in your browser's address bar and copy it exactly from there.

Another common problem is forgetting the https:// at the start. If you paste only example.com, some tools will treat it as text instead of a link, or the browser will not know where to send the reader. Always include the full protocol (https:// or http://).

If you are linking to a file on your computer instead of a website, the link will only work on your own machine. To share a file link with others, upload the file to cloud storage (Google Drive, Dropbox, OneDrive) and share the link to that instead.

How to check and edit a link after you create it

To see where a link actually goes without clicking it, hover your mouse over it. Most browsers show the destination URL in a small tooltip at the bottom left of the screen. If the URL looks wrong, you can edit it.

To edit a link, right-click it and look for Edit Link or Open Link Editor. In most tools, you can also highlight the linked text and press Ctrl+K or Cmd+K again — the dialog will show the current destination, and you can change it.

If you want to change the text that readers see without changing the destination, highlight just the text (not the link itself), delete it, and type new text. The link destination stays the same. This is useful when you want the link to say something different but point to the same place.

Frequently Asked Questions

Can I make an image into a link?

Yes. Highlight or select the image, then press Ctrl+K or Cmd+K and paste the destination URL. When someone clicks the image, they go to that URL. This works in Google Docs, WordPress, website builders, and most other tools that support links.

What is the difference between a link and a button?

A link is text or an image wrapped in HTML code that points somewhere. A button is usually styled to look like a clickable object and often has a background color or border. Buttons are common on websites and in apps, but they work the same way underneath — they are links with extra CSS styling applied.

Can I link to a specific part of a page instead of the top?

Yes, using an anchor. Add an id attribute to the element you want to link to — for example, <h2 id="section-2"> — then link to it with a hash: https://example.com#section-2. Most website builders have a menu option to create these automatically.

What happens if the page I am linking to disappears?

The link will break and show a 404 error when someone clicks it. You cannot prevent this, but you can check your links periodically. Some tools and browser extensions scan a page and report broken links. If you link to content you do not control, there is a small risk it will move or vanish.

Can I make a link open in a new tab instead of the current one?

In most tools, right-click the link and look for an option like "Open in new tab" or "Open link in new window". In HTML, add target="_blank" to the link tag: <a href="url" target="_blank">. This tells the browser to open the destination in a new tab instead of replacing the current page.