Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
|Zymic Webmaster ForumsWeb Design & DevelopmentClient Side ScriptingHTML and CSS|
Oct 29 2007, 11:21 PM
Super Duper Ninja
Joined: 20-September 07
From: Houston, TX
Member No.: 290
I'm not sure whether or not this is PHP, AJAX, or HTML, how do you create buttons that direct users to a specific paragraph or section in your HTML page? I've googled it, but haven't found anything yet.
Just like the technology they used in Wikipedia:
Link to normal page: http://en.wikipedia.org/wiki/Characters_of_StarCraft
Link to paragraph: http://en.wikipedia.org/wiki/Characters_of_StarCraft#Zeratul
I've tried to analyze it...perhaps the # tells the page to scroll to a div id?
Oct 29 2007, 11:27 PM
Outrageously Uber Ninja
Joined: 2-June 07
From: United States
Member No.: 14
The Anchor Tag and the Name Attribute
The name attribute is used to create a named anchor. When using named anchors we can create links that can jump directly into a specific section on a page, instead of letting the user scroll around to find what he/she is looking for.
Below is the syntax of a named anchor:
<a name="label">Text to be displayed</a>
The name attribute is used to create a named anchor. The name of the anchor can be any text you care to use.
The line below defines a named anchor:
<a name="tips">Useful Tips Section</a>
You should notice that a named anchor is not displayed in a special way.
To link directly to the "tips" section, add a # sign and the name of the anchor to the end of a URL, like this:
Jump to the Useful Tips Section</a>
A hyperlink to the Useful Tips Section from WITHIN the file "html_links.asp" will look like this:
<a href="#tips">Jump to the Useful Tips Section</a>
|Lo-Fi Version||Time is now: 5th December 2013 - 07:56 AM|