The moose likes HTML, CSS and JavaScript and the fly likes What is # in href declaration? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What is # in href declaration?" Watch "What is # in href declaration?" New topic

What is # in href declaration?

Naveen Morrise

Joined: Jun 06, 2006
Posts: 25
I am new to the Java script code and can any one explain me what in 'href="#"' means and what it represents.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63348

It is used to reference a named anchor within a page.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
That is not is HTML.

I agree. Here's the link:
subject: What is # in href declaration?
It's not a secret anymore!