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

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

Thank you guys
Question by:wilslm
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
LVL 33

Expert Comment

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

LVL 33

Expert Comment

ID: 9888763
LVL 33

Expert Comment

ID: 9888770
check out anchor name

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users


Expert Comment

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.

Expert Comment

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>
LVL 11

Accepted Solution

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>
LVL 16

Expert Comment

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>

LVL 16

Expert Comment

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>

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

707 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