Explain use of NAME and HREF attributes of the A tag.

Q5. Explain the use of the NAME and HREF attributes of the <A> tag.
Ans. The NAME attribute defines a name of a section/ segment in a document. For example:
<A name=”segment1”> segment1</A>

The HREF attribute defines the URL of the target segment/ location/ page. For example: Read More …