473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Inserting a HTML anchor?

Hi all,
I have a two page web site and im trying to set it up so that when you
click a link on my link bar, it will take you to my products page. However,
depending on what link you click on the link bar, I want it to take you to
the specific location on the products page.
I know the the html anchor attribute will do it, But I find it a little
confusing.
Anyone have any tips or tricks to make it understandable?
Thanks for your time,
Mike Pratz
Jul 20 '05 #1
1 5426
Arthur Pratz wrote:
depending on what link you click on the link bar, I want it to take you
to the specific location on the products page. I know the the html anchor attribute will do it, But I find it a little
confusing.


I would too. There is no such thing as an anchor attribute in HTML. There is
an achor tag which has a name attribute if you want to do the old style,
but new style lets you create a fragment identifier with the id attribute
on any element.

e.g.

<h2 id="myproduct">My Product</h2>

Then you can link href="page.html#myproduct"
--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anna | last post by:
Hello all. I hope this is the right group to ask my question. I have an HTML page that contains an SVG file in an object. Inside an SVG file I want to add a link to link to some anchor on the...
0
by: Tag | last post by:
Altova StyleVision has good features for generating hyperlinks with both static and dynamic segments. But I don't quite see how to create an anchor in the same document, so I can, for example,...
4
by: Ed | last post by:
I am building a glossary. Each letter of the alphabet has its own HTML page, and each glossary entry on the page already has a unique HTML anchor tag immediately to the left of it. I've already...
1
by: httpmart | last post by:
On my website I routinely make use of anchors such as: <a name="shipping">SHIPPING</a> and a link to them such as: <a href="#shipping">Go to Shipping information</a> These work fine on IE.
1
by: teranetsecurity | last post by:
I have a question. I'm working on this website with a treeview style menu coded in php. the menu autocreates itself by pulling data off a mysql database. It has the capabilities to get quite large...
6
by: Christoph Söllner | last post by:
Hi *, is there a html parser available, which could i.e. extract all links from a given text like that: """ <a href="foo.php?param1=test">BAR<img src="none.gif"></a> <a...
6
by: dark.peony | last post by:
Hi, (--1--) I'm trying to find a way to jump to a link (<a href="ref"></a>) in a page that is generated with javascript. The source view of the page only shows the javascript methods. The...
3
by: Tommy DN | last post by:
I just wanted to make something that creates html-code which should be inserted in a mysql database. The user should type text in a textarea. When the user submits the data, all enters should be...
5
by: handoyo | last post by:
Hi all,i'm trying to show updated data in existing html td.. For example i got column that show last modified datetime,then i want to update data again,the column will changed to current time without...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.