Which of the following symbols is used to create a link to a named anchor in…
2017
Which of the following symbols is used to create a link to a named anchor in HTML?
Answer: B. # — Correct answer: # (hash) Explanation: In HTML, placing the hash symbol (#) followed by an element's id in the href attribute creates a link to that named…
- A.
&
- B.
#
- C.
@
- D.
$
Attempted by 823 students.
Show answer & explanation
Correct answer: B
Correct answer: # (hash) Explanation: In HTML, placing the hash symbol (#) followed by an element's id in the href attribute creates a link to that named anchor within the same page or to a specific element on another page. Example: <a href=\"#section1\">Go to Section 1</a>
A video solution is available for this question — log in and enroll to watch it.
Loading lesson…