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…

  1. A.

    &

  2. B.

    #

  3. C.

    @

  4. 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.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…