11.9k views
4 votes
An anchor tag can be coded using which two attributes? HELP ME PLEASE!!!!

1)href and name
2)src and id
3)href and src
4)name and src

User Mustafah
by
7.4k points

1 Answer

1 vote

Answer:

Option 1 is correct.

Explanation:

An anchor tag is used to define hyperlinks which are clickable and take us the different page or any specific part of the same page.

Ex. <a href="URL name"> Anchor_name </a>

In the above format , anchor tag is defined by <a> and </a> its closing tag.

HREF is an attribute of anchor tag which takes to the location of the link.

Anchor_name is the name of the anchor which is displayed as the name of the hyperlink.

User Didats Triadi
by
8.8k points