Given below are several usages of the anchor tag in HTML. (a) Test (b) Test (c) Test (d)
Given below are several usages of the anchor tag in HTML. (a) <A href=”http://w3c.org/test.html”>Test</A> (b) <A href=”/HTML/test.html”> Test</A> (c) <A href=”test.html”>Test</A> (d) <A href=”test.html Correct Answer (a), (b), (c) and(d)
Concept
Anchor tag <a> is used to define a hyperlink that links one page to another. Attribute that is used with anchor tag is href which indicates the destination of the link.
Syntax of the tag:
<a href = “www.google.com”>Page</a>
Sometimes if there is need to link to another page then we can use target attribute of anchor tag. With this, link can be opened in new page.
There are three appearances in the anchor tag. These are unvisited link, visited link, active link.
All the options are correct”
NOTE:
“ ” → is not compulsory