Distinguish between HREF and Name attributes of <A> tag with the help of an example??
Answers
Answered by
55
Anchor Tag
This works in Expression Web all versions.
HTML uses the <a> (anchor) tag to create a link to another document. An anchor can point to another html page, an image, a text document, or a pdf file among others.
Example of an anchor tag:<a href="url">Text to be displayed as link</a>
The <a> tag is used to create an anchor to link from, the href attribute is used to address the document to link to, and the words between the open and close of the anchor tag will be displayed as a hyperlink.The example defines a link to the home page of this site. The default of the anchor tag is to go to the top of the document it points to.
Mark As Brainlist.
This works in Expression Web all versions.
HTML uses the <a> (anchor) tag to create a link to another document. An anchor can point to another html page, an image, a text document, or a pdf file among others.
Example of an anchor tag:<a href="url">Text to be displayed as link</a>
The <a> tag is used to create an anchor to link from, the href attribute is used to address the document to link to, and the words between the open and close of the anchor tag will be displayed as a hyperlink.The example defines a link to the home page of this site. The default of the anchor tag is to go to the top of the document it points to.
Mark As Brainlist.
Answered by
62
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
Geography,
8 months ago
Political Science,
8 months ago