Topic: HTML Basics

Link to an external website – HTML


To create a link to another website, use the anchor element with the href attribute.

<a href="">External link</a>

To see what this element looks like in the browser, click the link in the Demo section below.


The process of creating a link to an external website is similar to creating a link to one of your own pages. The difference is that links to external websites should use absolute URLs (meaning they should include the http:// or https:// protocols with the URL).


External link demo


Using your text editor, try creating a link to an external website. You can choose any external website you like.


The Anchor element on MDN