Hyperlink tag in HTML

Can anybody tell me why this answer is wrong

Sorry i did not see the url mention it should be href instead of url

1 Like

Its because in “a” (Link tag) we should use href which means hyperlink reference.
That is we should give the reference to our webpage to go into another web page.
https://something here.com is itself a url(Uniform resource locator) or webaddress
href attribute is designed to set the url to link tag. And that is the reason we do not get anything when we use url rather than href attribute.


That is a good explaination. Can you please tell me what that “a” is for?

HI @aditya198018d
‘a’ is a tag name which is used to add a hyperlink.
It means nothing else.

1 Like

The tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the element is the href attribute, which indicates the link’s destination.

1 Like

The a is the attribute tag.

Attributes and tags are different things,
“a” is a tag while ‘href’, ‘target’ are its attributes.

1 Like