Forum Moderators: open

Message Too Old, No Replies

use of <b> with an a href

Proper method to code

         

glenng

8:42 pm on Apr 10, 2006 (gmt 0)

10+ Year Member



What format is correct when coding a link?

1) <b><a href="www.somethingdomain.com">anchor text</a></b>

2) <a href="www.somethingdomain.com"><b>anchor text</b></a>

Thanks for a response.

ChadSEO

8:49 pm on Apr 10, 2006 (gmt 0)

10+ Year Member



glenng,

Both are valid. Personally, I use the <b><a></a></b> form because I like to avoid HTML in my anchor text for search engines - whether this actually makes a difference or not, I have no idea. Just my personal preference.

Chad

glenng

9:27 pm on Apr 10, 2006 (gmt 0)

10+ Year Member



Chad,

Thanks for your response.

D_Blackwell

11:16 pm on Apr 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're using any CSS on the link, such as color: or font-size:, then easiest to switch <b> to font-weight:, and include it in the CSS instead.

I'm with ChadSEO in keeping it outside the <a>, though also don't know if it actually matters.

glenng

7:15 pm on Apr 11, 2006 (gmt 0)

10+ Year Member



I am using regular old HTML.

Appreciate your input.