aspose file tools
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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: 62118

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: 15379
That is not is HTML.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: What is # in href declaration?