I'm trying to place anchors in photos on one page so that when a viewer clicks on a phot, they are taking to a corresponding section of another page. W3cschools has been no help, neither has webmonkey. Anyone around to point me to the right direction???
Thank you, and as always I bow before your web-savvy-ness
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Okay, I did one of those for the lamppost on the site (www.24brownstreet.com). That was no problem. But, I am curious what function does an anchor serve? When is the best time to use one???
Thanks, for you're help, though... :-)
The <a> tag is used to define anchors and links. For example, in your document, you may have:
<body>
<a name="topofpage"></a>
Yadda Yadda Yadda
Blah Blah Blah
...
<a href="#topofpage">Top of this page</a>
The first <a name=""> defines the anchor. The second is used to link to that location in the document. If the above page is called thispage.html, you may also use <a href="thispage.html#topofpage"> to go to that specific location from another page.
Originally posted by stargal98 Okay, I did one of those for the lamppost on the site (www.24brownstreet.com). That was no problem. But, I am curious what function does an anchor serve? When is the best time to use one???
Thanks, for you're help, though... :-)
Here's a great example of the function of anchors...
Originally posted by Stefan For the record, the anchor model described here is outdated for quite a few years, and it's just used for backwards compability with old browsers.
Nowdays to make an anchor you don't need to place <a> all over the place, just eg
<p id="this-is-an-anchor">
<a href="#this-is-an-anchor">jump to anchor</a>
Fore backwards compability you can use
<p id="this-is-an-anchor" name="this-is-an-anchor">
Yep that's why the site was removed like I said before...
Originally posted by ..::Bro::..
Yep that's why the site was removed like I said before...
With all due respect, your site does not validate as HTML 4.01 Transitional. You seem to be using proprietary IE attributes (gridx gridy etc). Your pages look different on IE/Win and IE/Mac. Sincerely speaking, people who should be giving advice on HTML should atleast do things right on their webpages.
Originally posted by nkaisare With all due respect, your site does not validate as HTML 4.01 Transitional. You seem to be using proprietary IE attributes (gridx gridy etc). Your pages look different on IE/Win and IE/Mac. Sincerely speaking, people who should be giving advice on HTML should atleast do things right on their webpages.
I stand corrected. Thanks
Yep.. that's why it's under construction ....
The person asked what functions "anchors" have...
I merely showed a fun page to what anchors serve as, I didn't
tell her to look at my code to see that my code is off, did i?
These are discussion groups... I didn't say take my advice,
I said laugh a little at this example.
Bookmarks