which is better?

  • Thread starter The Bicycling Guitarist
  • Start date
T

The Bicycling Guitarist

Either way I don't have overlapping tags, but I wonder which is more
esthetically and / or logically pleasing?

<a id="homepage"></a><a href="index.htm" title="Home page of The Bicycling
Guitarist">Home page</a>

OR

<a id="homepage"><a href="index.htm" title="Home page of The Bicycling
Guitarist">Home page</a></a>

I currently have the first arrangement, but will happily change it if the
second arrangement is preferred. Will both of them go to the same spot on
the page?

Thanks, Chris Watson a.k.a. "The Bicycling Guitarist"
www.TheBicyclingGuitarist.net/
I still have a code, but it's getting better.
 
B

brucie

In alt.html The Bicycling Guitarist said:
Either way I don't have overlapping tags, but I wonder which is more
esthetically and / or logically pleasing?

<a id="homepage"></a><a href="index.htm" title="Home page of The Bicycling
Guitarist">Home page</a>

OR

<a id="homepage"><a href="index.htm" title="Home page of The Bicycling
Guitarist">Home page</a></a>

why have a title that repeats the link text anyway? if a link says 'home
page' i didn't need to be told again in the title text which home page,
if its not your home page the link shouldn't be called home page.
 
M

Mark Parnell

<a id="homepage"></a><a href="index.htm" title="Home page of The Bicycling
Guitarist">Home page</a>

OR

<a id="homepage"><a href="index.htm" title="Home page of The Bicycling
Guitarist">Home page</a></a>

<a href="index.htm" id="homepage" title="Home page of The Bicycling
Guitarist">Home page</a>
 
T

The Bicycling Guitarist

The Bicycling Guitarist said:
Either way I don't have overlapping tags, but I wonder which is more
esthetically and / or logically pleasing?

<a id="homepage"></a><a href="index.htm" title="Home page of The Bicycling
Guitarist">Home page</a>

OR

<a id="homepage"><a href="index.htm" title="Home page of The Bicycling
Guitarist">Home page</a></a>
What about putting the id inside the <a href> tag???? I didn't even think of
that! is that okay? Better still than either of the other two ideas?
 
T

The Bicycling Guitarist

<a href="index.htm" id="homepage" title="Home page of The Bicycling
Guitarist">Home page</a>

You guys are SO fast! Thanks Mark. Answered in two minutes flat! Thanks
Brucie too, for all your l i t t l e v o i c e s.
 
T

Toby Inkster

The said:
<a id="homepage"><a href="index.htm" title="Home page of The Bicycling
Guitarist">Home page</a></a>

An anchor can't be nested within another anchor. See the W3C HTML 4.01
Recommendation, section 12.2.2.

Go read Mark's post.
 
T

The Bicycling Guitarist

Toby Inkster said:
An anchor can't be nested within another anchor. See the W3C HTML 4.01
Recommendation, section 12.2.2.

Go read Mark's post.
Thank you Toby. I did as Mark suggested. Now I also know that my second
suggestion was not valid code. The new improved code is on my site map,
www.TheBicyclingGuitarist.net/sitemap.htm I'm still in the process of
eliminating some whitespace.
 
T

The Bicycling Guitarist

Toby Inkster said:
The Bicycling Guitarist wrote:

Hey, your name has been in the source code of that page for a year, in the
<head>. If I listed everyone who's helped me, my code would be way bloated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top