Welcome guest! Login or Sign up!
Set my location
Home Ask Browse Photos Groups Advisors Widgets IWA-HWG
Home » Basics and Web Design » Anchor Tags in Tables

Anchor tags in tables

Posted by leighwee 9 months ago
Send me Private Mail | Report Abuse

I'm a novice working in HTML on a journaling site, and am working with an entry that has a large table. What I'm trying to achieve is the ability to click on a link and have it take you down to the appropriate row (or cell, if this is easier). I tried placing an anchor tag ( < a name = "r19" > < / a > without the spaces of course) around the row, within the row, before the row, pretty much everywhere I can think of. I have given each row an id ( < tr id = "r1" > , so on, so forth, each row). The code works in Internet Explorer, taking me to the appropriate row, but when I click on the link in Firefox I'm just taken to the top of the table.

Any suggestions? Are anchor tags inside tables even feasible? It seems there must be a solution as it works in IE, but not in Firefox.

Many thanks for any assistance you're able to provide!
-Leigh



Hi,
Anchors are allowed in tables(actually you mean cells, I think.) The way to do it is to make the link you want; if it on the same page, just use the "#" to create the link and "name" or "id" to take you to it. It must be "id" in XHTML and it must be unique on the page. If it is on another page then you must name the page first. Example:
leads to on the same page.
leads from another page to
Do notice that quotes are used. As a stop gap I always use the in the the element of the document, but I enclose it in the HTML comment tag thusly:
<!--- base href="mypage.html" --->
Notice one thing there, there is a space at the end between the quote and the first hyphen; strongly recommended.
Peace,
Clarke


Hi,
Sorry the coding wasnot easily visible; you can see it by rolling over the "leads to" and the whole following line. I did not close the anchor and it did not show up as written. Just place your cursor over those places and look at your status bar to see what I put there.
Peace,
Clarke



Post an Answer:

Your Answer: HTML is not allowed.

Answered By



crigby
Posted 64 answers.

Overall Ranking
Read_star_1


Rss_feed    Myaol_cta1    Addtomyyahoo4    Add