HighDots Forums  

which is better?

alt.html alt.html


Discuss which is better? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
The Bicycling Guitarist
 
Posts: n/a

Default which is better? - 11-07-2004 , 07:47 PM






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.


Reply With Quote
  #2  
Old   
Mark Parnell
 
Posts: n/a

Default Re: which is better? - 11-07-2004 , 07:52 PM






On Mon, 08 Nov 2004 00:47:51 GMT, The Bicycling Guitarist
<Chris (AT) TheBicyclingGuitarist (DOT) net> declared in alt.html:

Quote:
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>

--
Mark Parnell
http://www.clarkecomputers.com.au
"Never drink rum&coke whilst reading usenet" - rf 2004


Reply With Quote
  #3  
Old   
The Bicycling Guitarist
 
Posts: n/a

Default Re: which is better? - 11-07-2004 , 08:11 PM




"The Bicycling Guitarist" <Chris (AT) TheBicyclingGuitarist (DOT) net> wrote

Quote:
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?



Reply With Quote
  #4  
Old   
The Bicycling Guitarist
 
Posts: n/a

Default Re: which is better? - 11-07-2004 , 08:13 PM




"Mark Parnell" <webmaster (AT) clarkecomputers (DOT) com.au> wrote

Quote:
On Mon, 08 Nov 2004 00:47:51 GMT, The Bicycling Guitarist
Chris (AT) TheBicyclingGuitarist (DOT) net> declared in alt.html:


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

--
Mark Parnell
http://www.clarkecomputers.com.au
"Never drink rum&coke whilst reading usenet" - rf
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.



Reply With Quote
  #5  
Old   
The Bicycling Guitarist
 
Posts: n/a

Default Re: which is better? - 11-07-2004 , 08:30 PM




"Toby Inkster" <usenet200411 (AT) tobyinkster (DOT) co.uk> wrote

Quote:
The Bicycling Guitarist wrote:

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.

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.



Reply With Quote
  #6  
Old   
The Bicycling Guitarist
 
Posts: n/a

Default Re: which is better? - 11-07-2004 , 08:34 PM




"Toby Inkster" <usenet200411 (AT) tobyinkster (DOT) co.uk> wrote

Quote:
The Bicycling Guitarist wrote:
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
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.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.