Question 12 Marks
Explain the purpose of NAME and HREF attributes.
Answer
View full question & answer→The NAME attribute specifies the name of an anchor. It is used to create a bookmark inside a document.
Example:
$<$A NAME="Chapter 6">Chapter 6</A$>$
The HREF attribute specifies the URL of the page the link goes to.
The HREF attribute specifies the link's destination:
$<$A HREF="https://www.gmail.com"$>$$<$gmail/A$>$
Example:
$<$A NAME="Chapter 6">Chapter 6</A$>$
The HREF attribute specifies the URL of the page the link goes to.
The HREF attribute specifies the link's destination:
$<$A HREF="https://www.gmail.com"$>$$<$gmail/A$>$