Asked • 03/16/19

What is href="#" and why is it used?

On many websites I see links that have `href="#"`. What does it mean? What is it used for?

Steph R.

This was answered well by Perry. Just to put a finer point on it, if you wanted to share an event with a client or friend and your webpage is long and there's a lot of information to wade through you could send the #sectionname along with the URL of the website (assuming you've coded it this way). nameofyourwebsite.com/index.html#events If it's coded properly the page will load and "jump" to the events section automatically so your friend can quickly find the exact area of the page you mentioned.
Report

08/12/19

2 Answers By Expert Tutors

By:

Perry M. answered • 05/31/19

Tutor
5 (31)

Professional Web Application Developer

Eduardo T. answered • 03/17/19

Tutor
5 (10)

Self-Taught Web Developer (HTML/CSS, JavaScript)

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.