Linking to another place in the same or another webpage require two A (Anchor)…
2014
Linking to another place in the same or another webpage require two A (Anchor) tags, the first with the ________ attribute and the second with the _________ attribute.
- A.
NAME & LINK
- B.
LINK & HREF
- C.
HREF & NAME
- D.
TARGET & VALUE
Attempted by 403 students.
Show answer & explanation
Correct answer: C
Answer: The first anchor uses the href attribute and the second uses the name attribute.
Linking anchor (uses href): example <a href="#section1">Go to section</a>
Destination anchor (uses name): example <a name="section1"></a>
Modern HTML note: the name attribute on anchors is deprecated in HTML5. Prefer using id on any element as the fragment target and link to it with href. Example <h2 id="section1">Section</h2> and <a href="#section1">Go to section</a>
Therefore the correct pairing is href on the linking anchor and name on the target (commonly implemented today using id for the target).