Links in html

In this article we are going to learn about lists in html.

We learnt about html in general learning the structure of html, text in html and lists in html so, now we are going to go through links.

In HyperText Markup Language we have links and this links help us to connect to other pages, linking pages to one another in webpage, website and even to other websites as well to applications when clicking on them.

In HyperText Markup Language we have links and this links help us to connect to other pages, linking pages to one another in webpage, website and even to other websites as well to applications using <a>link</a> tags.

Hyper reference

The hyper reference href="url" is the main link attribute that cotains the url that connect us to different pages, websites and applications.

Universal referal link

Linking to different page

We can create a link that can take us to another page. We assume that pages are in the same folder.

Let us say we have html-tutorial.html and css-tutorial.html in the same folder and we want to go to css-tutorial.html page from html-tutorial.html page.

Example

Let us create link that will take us to css-tutorial.html page from html-tutorial.html page, copy and paste below code in html-tutorial.html page.

<a href="css-tutorial.html">Css tutorial</a>

So, we should have the following results and when clicking this link, should take us to css-tutorial.html.

Css tutorial

Linking to website

Example

Let us create link that will take us to job posts at scienceinlesotho website home page, copy and paste below code.

So, we should have the following results and when clicking this link, should take us to job posts at scienceinlesotho website home page.

job posts at scienceinlesotho

Linking to mail application

We can also connect to applications using links, now we are going to create link that will take us to google gmail application on android and to windows mail application on windows.

Example

Let us create link that will take us to mail application, copy and paste below code.

So, we should have the following results and when clicking this link, should take us to mail application.

Reach scienceinlesotho via mail

Linking to calling application

We can also connect to calling applications using links to call companies and our friends, now we are going to create link that will take us to calling application.

Example

Let us create link that will connect us to calling application, copy and paste below code.

<a href="tel:+266 58660215"> Reach scienceinlesotho via call</a>

So, we should have the following results and when clicking this link, should take us to calling application.

Reach scienceinlesotho via call

We can link any page, website or application to our webpages, website and applications with only one line of html code. Websites and applications on the internet are connected via links the whole world.


Conclusion

In this article we learnt about links in html with examples and how we can use links to connect to pages, websites and applications by only using links.