The href attribute
As you probably know, links are what make up the bulk of the Internet. The tag <a>
defines a link, and it requires the href
(hypertext reference) attribute to specify where it leads.
There are two types of links you can use: local and external. Local links lead to pages that are within your website. They are specified with relative URLs that don't have the https://www part. The best part about local links is that they don't break if you change the domain.
External links lead to external websites like google.com, and they require what we call absolute URLs — full web addresses with https://www.