How is the NAME attribute different from the HREF attribute used with tag
Answers
Answer:
-Name att. is used to give name to the Anchor <a> tag.It is used in INTERNAL LINKING.
-Href att. is used to define the location of the HTML document
Difference between HREF and NAME attributes of <A> tag :-
HREF attribute :
(i) The HREF attribute is used to create the reference for the specified text within <A> tag.
(ii) It is used for Internal linking.
(iii) Example - <a href = "http://www.yahoo.com">here</a> to go to yahoo.
Name attribute :
(i) The NAME attribute is used to create an anchor (bookmark) inside the document with the help of '' # '' symbol.
(ii) It is used for External linking.
(iii) Example -
Create an anchor inside the document
<A HREF= # Point1> Analyze your usage scenario</A>
Linking to an anchor on a page
<A NAME = Point1 > Analyze your usage scenario</A>
I hope this helps you!!!
Please mark as the Brainliest answer.