Solved

#

Posted on 2003-12-06
8
242 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
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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now