Purpose of # in HTML.

Q7. Consider the HTML code <A HREF=#intro> Introduction </A>

In the above code:

  1. What is the purpose of # ?
  2. What will happen when the user clicks “Introduction”?

Ans. 1. The # symbol is used to tell the Web browser that this link is in the same Web page.

 

Ans. 2. When you click Introduction, you are redirected (or sent) to the section named ‘intro’ in the Web page.

Leave a Reply

Your email address will not be published. Required fields are marked *

7 Views
%d bloggers like this: