Lesson Four: The External (Absolute) Link

Now that you know about links that stay within your website, let's learn about "external" links that leave your site and lead somewhere else.

Uniform Resource Locators (URLs)
Each web page on the Internet needs some sort of unique name so it can be identified. A page can be accessed by a Uniform Resource Locator (URL). URLs can be used to identify HTML files, PHP files, image files, plain text files, and many other file types. Here is an example URL:

1 answer

https://www.example.com/page.html

The URL is composed of several parts:

1. Protocol: In this example, the protocol is "https". This indicates the method that should be used to access the page. Common protocols include "http" and "https" for web pages, "ftp" for file transfers, and "mailto" for email addresses.

2. Domain: The domain is the main part of the URL and identifies the server where the web page is hosted. In this example, the domain is "www.example.com". The domain is made up of a specific name (such as "example") and a top-level domain (such as ".com", ".org", or ".net").

3. Path: The path is the specific location of the file on the server. In this example, the path is "/page.html". The path can include folders and subfolders to organize files on the server.

Linking to an External Website
To create a link that leads to an external website, you can use the "a" tag with the "href" attribute. The "href" attribute specifies the URL of the destination. Here is an example:

<a href="https://www.example.com">Visit Example Website</a>

In this example, the link text is "Visit Example Website", and the URL is "https://www.example.com". When the link is clicked, the user will be taken to the specified website.

Linking to a Specific Page on an External Website
You can also link to a specific page on an external website by including the URL of the page in the "href" attribute. Here is an example:

<a href="https://www.example.com/about.html">About</a>

In this example, the link text is "About" and the URL is "https://www.example.com/about.html". When the link is clicked, the user will be taken to the specified page on the external website.

External links are an important aspect of web design because they allow you to connect your website to other valuable resources and provide additional information to your visitors. Remember to always check that the external website is reliable and trustworthy before linking to it.
Similar Questions
    1. answers icon 1 answer
    1. answers icon 1 answer
  1. Hey Guys!!!I don't have questions, but I do have answers!!! The following link goes to a Quizlet Page with all of the CORRECT
    1. answers icon 13 answers
    1. answers icon 1 answer
more similar questions