The <a>
element is used to create a link to a web page. Here are some examples:
As you can see, the <a>
element contains href
.
When we click the link, the href
identifies the
web page to which the browser will now take us.
Some websites may have restrictions
in place that prevent them from being
loaded within an <iframe>
or when
linked directly using the <a>
tag.
This is the reason in the above code
clicking the Google link might not work,
while the Wikipedia link should open
as expected.