There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
black screen blue screen boot bsod computer connection crash css dell display driver drivers email error explorer firefox firefox 3 hard drive internet internet explorer itunes laptop lcd malware monitor network networking nvidia outlook outlook 2003 outlook express password printer problem problems ram router security slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: HTML text


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Selwyn's Avatar
Member with 35 posts.
 
Join Date: Jun 2002
Location: Kibbutz Bror Hayil, Israel
Experience: difficulties with all the technical jargon
27-Sep-2007, 01:52 PM #1
Smile Solved: HTML text
Hi, Gang!

Can anyone tell me if it is possible to link from one point in any given web site to a particular word/phrase/point in the text in another web site by using something like <a href="http://www.............?"></a>?

i.e. - In two of my websites I have some references and I want readers to be able to click on one website link and get to a particular point in the second one.

I would be most grateful for any assistance on this.

All the best,
Selwyn.
Tact's Avatar
Senior Member with 368 posts.
 
Join Date: Sep 2002
Location: California
27-Sep-2007, 02:07 PM #2
if i understood correctly, i think your looking for this

http://www.computerhope.com/issues/ch000049.htm


oh wait. leading to to a particular part in a diffrent page. now that's a good question. >.< dang i have no idea. >.< sorry
WendyM's Avatar
Distinguished Member with 2,533 posts.
 
Join Date: Jun 2003
27-Sep-2007, 02:08 PM #3
Hi Selwyn,
Yes, you can do this with the name attribute of the anchor tag. Start with the second page (where the specific content is). Around the part you want them to "jump" to, insert
Code:
<a name="something">specific content</a>
Then in the first document, your link would be
Code:
<a href="http://www.whatever.com/page.htm#something">Go to specific content</a>
The name attribute won't create the formatting of a hyperlink, so you don't have to worry about it being underlined if you don't want to it to be. The #something at the end of the link on the first page tells it to go to that specific part of the page. Hope that helps.
ivenms's Avatar
Computer Specs
Member with 36 posts.
 
Join Date: Sep 2007
Experience: WebMaster
27-Sep-2007, 03:58 PM #4
Quote:
Originally Posted by WendyM
Hi Selwyn,
Yes, you can do this with the name attribute of the anchor tag. Start with the second page (where the specific content is). Around the part you want them to "jump" to, insert
Code:
<a name="something">specific content</a>
Then in the first document, your link would be
Code:
<a href="http://www.whatever.com/page.htm#something">Go to specific content</a>
The name attribute won't create the formatting of a hyperlink, so you don't have to worry about it being underlined if you don't want to it to be. The #something at the end of the link on the first page tells it to go to that specific part of the page. Hope that helps.
Don't link the "specific content" on the page. That makes unnecessary underlines for the text and gives different views on different browser. You can use the anchoring like this:
Code:
<a name="something"> </a>specific content
__________________
Free Support for WebMasters
Selwyn's Avatar
Member with 35 posts.
 
Join Date: Jun 2002
Location: Kibbutz Bror Hayil, Israel
Experience: difficulties with all the technical jargon
27-Sep-2007, 04:15 PM #5
Hi, Wendy! Many many thanks for your quick and precise response - I'll get it done soon (after a bit of practice, I suppose!).

Have a nice day............
Selwyn.
WendyM's Avatar
Distinguished Member with 2,533 posts.
 
Join Date: Jun 2003
27-Sep-2007, 06:15 PM #6
Quote:
Originally Posted by ivenms
Don't link the "specific content" on the page. That makes unnecessary underlines for the text and gives different views on different browser. You can use the anchoring like this:
Code:
<a name="something"> </a>specific content
Empty anchor tags are non-semantic and can create accessibility issues. The name attribute shouldn't underline the content or cause it to be displayed differently, particularly not if you're controlling site formatting through CSS. Either way probably works fine visually, but I prefer not to use empty tags.
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,198 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
28-Sep-2007, 05:33 PM #7
Quote:
Originally Posted by ivenms
Don't link the "specific content" on the page. That makes unnecessary underlines for the text and gives different views on different browser. You can use the anchoring like this:
Code:
<a name="something"> </a>specific content
I can do one better. With the ID attribute, you can use any element, so use one with no formatting.

<span id="something">specific content</span>

tomdkat's Avatar
Computer Specs
Distinguished Member with 3,716 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
01-Oct-2007, 02:38 PM #8
Quote:
Originally Posted by namenotfound
I can do one better. With the ID attribute, you can use any element, so use one with no formatting.

<span id="something">specific content</span>
That will function as an anchor? You can refer to a span by id using a URL like file.html#something?

Peace...
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,198 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
01-Oct-2007, 08:12 PM #9
Quote:
Originally Posted by tomdkat
That will function as an anchor? You can refer to a span by id using a URL like file.html#something?

Peace...
I'm not sure what you're asking, but this is how it works.

ID is where the anchor is going to on the page. (ID is the new NAME, in a way)

ANY id on the page can be a place to "drop anchor" sort-of-speak.

Code:
<a href="#bottom">Go to the bottom of the page</a>
---
---
---
---
<a name="bottom">This is the bottom</a>
Can be achieved in the following ways
Code:
<a href="#bottom">Go to the bottom of the page</a>
---
---
---
---
<span id="bottom">This is the bottom</span>

OR

<a href="#bottom">Go to the bottom of the page</a>
---
---
---
---
<p id="bottom">This is the bottom</p>

OR

<a href="#bottom">Go to the bottom of the page</a>
---
---
---
---
<em id="bottom">This is the bottom</em>
OR anything else, since the ID attribute can be for any element.
__________________
-----------------------------
| 404: Name Not Found |
-----------------------------
PLEASE NOTE: If I happen to help you in a post, or just simply reply to it, doesn't mean I want to be bombarded with PMs. I answer all questions in posts, not in PMs. Thank you, and have a good day.

<?php $h = 'Hello '; $w = 'World'; echo $h.$w; ?>

My Favorite Editors:
Windows: Crimson Editor
Mac: Taco HTML Edit
Linux: gPHPEdit
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,716 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
01-Oct-2007, 09:56 PM #10
Quote:
Originally Posted by namenotfound
I'm not sure what you're asking, but this is how it works.

ID is where the anchor is going to on the page. (ID is the new NAME, in a way)

ANY id on the page can be a place to "drop anchor" sort-of-speak.
Sweet! I didn't know that! Thanks!

Peace...
4 Me They said!'s Avatar
Computer Specs
Member with 35 posts.
 
Join Date: May 2006
Experience: Intermediate
02-Oct-2007, 01:53 PM #11
If I understand correctly, what you are asking is to be able to "Quote" a reference and a specific point in/to a page in SOMEONE ELSES web site page!

This is a complex question, with a complex answer.

It is only possible, as far as I know, IF the page on some-one elses site, has a "href" point on THEIR page, that will 'point you to THAT particular point on THEIR page on THEIR 'site'...
IF they don't have this 'href' point, then ALL you can do is point them to the 'page', and then the 'viewer' to YOUR page will be 'directed' to THEIR page, they (the viewer) then needs to 'look' for the 'point' you want the viewer to find within that page...

If the 'site' you are directing them to (is NOT yours) has this ability (#name?) you use the 'href' point to that part of the page. i.e: http://www.blahblah.com/xxpage/'ref point' (paragraph 3?)

My suggestion would be to contact the person/s who are 'publishing' the material, and ask/explain to them why you would like to 'link' to that particular aspect of their 'documentation' and request they add a '<a href="paragraph 3"/> to a point above their "paragrap 3" - Use the full 'hypertext' as in above. http://www.etc..........

(Example) -: http://www.htmltutorials.ca/lesson6.htm#world - Choice 'site'

a) <A HREF="#top">enclosed text</A>
b) <A HREF="index.htm">enclosed text</A>
c) <A HREF="http://www.press.com/perma/">enclosed text</A>
Answers to above:-
The a) statement is used in page jumps.
The b) statement is used in linking to another page in your directory (that is, to another one of your web pages).
The c) statement is used in linking to a website anywhere in the WWW.

The next alternative is to request that you 'display' THEIR page on YOUR site with a 'link' back to THEIR site on the NEW page on YOUR 'site', that points to the part of THEIR report.. Complex..

You have control of HOW to direct people who 'visit' YOUR site, because YOU can 'steer' them to WHERE YOU want them to look on YOUR 'site', BUT, if you want them (the viewer) to read a particular point SOMEWHERE else on SOMEONE else's 'site', then you need to look at a co-operative way to achieve it!!!

Remember, if looking at something from YOUR perspective, to understand it from THEIR perspective, LOOK at it from THEIR perspective first.

If I have not read this right, (your question) then none of this matters, does it!

Hope it is of help for someone at least...
Selwyn's Avatar
Member with 35 posts.
 
Join Date: Jun 2002
Location: Kibbutz Bror Hayil, Israel
Experience: difficulties with all the technical jargon
02-Oct-2007, 03:19 PM #12
To
4 Me They Said - and all other offers of help concerning my request for HTML script to locate a specific point in another (my) web site.

Many thanks to all of you - wendy was the first with a reply about 5-days ago. The problem has now been solved. Please do not send more solutions.

Many many thanks to all of you for your help.
Selwyn
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,252 posts.
 
Join Date: Oct 2006
02-Oct-2007, 03:58 PM #13
Quote:
Originally Posted by 4 Me They said!
If I understand correctly, what you are asking is to be able to "Quote" a reference and a specific point in/to a page in SOMEONE ELSES web site page!
This is a big annoyance of mine. Personally I think it should be possible to link to another site with #50px at the end of the path. when a browser opens that page it goes 50 pixels down.

That would be nice.

Lol.

Come to think of it that should be possible with a Firefox extension.
__________________
Guys, please, this is free tech support, act accordingly.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:13 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.