Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a URL and a LINK?

People talk about URL and LINK as if they're different things, but they look the same to the naked eye.

What's the difference between them?

like image 694
Ramesh Rajendran Avatar asked Nov 02 '15 09:11

Ramesh Rajendran


People also ask

What is a URL link example?

URL is an acronym for Uniform Resource Locator and is a reference (an address) to a resource on the Internet. A URL has two main components: Protocol identifier: For the URL http://example.com , the protocol identifier is http . Resource name: For the URL http://example.com , the resource name is example.com .

Should I use link or URL?

If it's clickable and has a URL behind the surface, it's a link. Both techies and non-techies use the terms link and URL interchangeably, much in the same way that people refer to typefaces and fonts as the same thing (even though they're not, technically.).

Is a URL a link to a website?

URL stands for “uniform resource locator.” A URL is the location of a web page or file that's been added to the internet. You can see a web page's URL in the address bar of your web browser.

Where is the URL in a link?

The website's URL is in the address bar, which is usually at the top of your web browser window. This bar may be at the bottom of the window in Chrome on some Androids. Copy the URL. If you want to paste the URL into a message, post, or another app, you can copy and paste it from the address bar.


2 Answers

URL is an acronym for "Uniform Resource Locator", and it is the address that specifies the location of a resource on the Internet. A typical URL must specify the protocol used to access the resource, the name of the host computer on which it is located, and the path of the resource:

http://www.server.com/main/folder/resource.html

The above URL indicates that the document resource.html is located at the web server www.server.com where it can be found in the path /main/folder.

An Hyperlink, or simply a Link, is:

"An element in an electronic document that links to another place in the same document or to an entirely different document. Typically, you click on the hyperlink to follow the link."

Source

like image 93
Izzy Avatar answered Sep 19 '22 16:09

Izzy


These are some URLs:

In a document, these URLs can be linked. This would, typically, allow consumers to do something with this URL (by clicking on it, or automatically when opening the document, etc.), e.g.:

  • visiting the page identified by the linked URL
  • sending an email to the linked email address
  • downloading the stylesheet referenced by the link

In an HTML document (which is the most popular, but not the only document format that can contain links), you could (for example) use the a element, which creates an hyperlink (aka. link) that can have a label (or anchor text) of your choice, e.g.:

  • <a href="http://example.com/">This is a link.</a>
    <a href="http://example.com/">http://example.com/</a>
    <a href="http://example.com/">http://example.net/misleading-label</a>

  • <a href="mailto:[email protected]">email me</a>
    <a href="mailto:[email protected]">[email protected]</a>

  • <a href="https://example.com/all.css">A CSS file</a>
    <link href="https://example.com/all.css" rel="stylesheet" />

like image 38
unor Avatar answered Sep 17 '22 16:09

unor