CBSE BOARD X, asked by Hitanshu7987, 10 months ago

How is the NAME attribute different from the HREF attribute used with tag

Answers

Answered by Pkala
6

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

Answered by Christianaluo
8

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.

Similar questions