Solved

#

Posted on 2003-12-06
8
281 Views
Last Modified: 2010-04-09
what does # mean?

i saw the syntax -->   <a href="page.html#layer">


Thank you guys
0
Comment
Question by:wilslm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 33

Expert Comment

by:hongjun
ID: 9888760
It means to go to the anchor with name "layer".

hongjun
0
 
LVL 33

Expert Comment

by:hongjun
ID: 9888763
0
 
LVL 33

Expert Comment

by:hongjun
ID: 9888770
check out anchor name
http://www.w3schools.com/html/html_links.asp

hongjun
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:arjanh
ID: 9888771
It is used to have links on the same page. So somewhere in the source of page.html is a
<a name="layer"></a>

And by clicking on the link "page.html#layer" you will have that exact place on the page in your browser, not just the top of that page.
0
 
LVL 7

Expert Comment

by:TransBind
ID: 9888994
If you want to create links within a page you can accomplish it by using <a href="page.html#layer">
A small example for you to make it understand better

<a href="page.html#book1">Go to book 1 section</a>   : When you click this link it will take you to a book 1 section on page even if its all the way on the bottom of the page
<a href="page.html#book2">Go to book 2 section</a>
<a href="page.html#book3">Go to book 3 section</a>

<a name="book1">Book 1 section</a>
<a name="book2">Book 1 section</a>
<a name="book3">Book 1 section</a>
0
 
LVL 11

Accepted Solution

by:
Zontar earned 125 total points
ID: 9889575
It is also used sometimes to create a "dummy" link for scripting purposes, e.g.

<p><a href="#" onclick="alert("Hi there!");">Click here for a useless message</a>.</p>
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 9894478
assuming Zonstar ;) forgot to return false on an accident

<p><a href="#" onclick="alert("Hi there!");return false;">Click here for a useless message</a>.</p>

0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 9894480
and used double quota's in a single quotas place

<p><a href="#" onclick="alert('Hi there!');return false;">Click here for a useless message</a>.</p>
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question