Html base and links

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
Watch

Crusader

Established Member
Impact
6
Hey everyone,

I thought I'd try something new and use the base tag instead of writing out full URLs when I make hyperlinks.

Code:
<base href="http://www.mydomain.tld/" />

I have a question though, when I make my links do I put a slash before it or not? I've run it through the W3 HTML checker and it showed up fine in both cases... so I'm a little confused on which is the proper way.

Code:
<a href="/directory/" target="_top">Directory</a>
<img src="images/728x90.gif" width="728" height="90" alt="Ad" />

<a href="directory/" target="_top">Directory</a>
<img src="images/728x90.gif" width="728" height="90" alt="Ad" />

Note: they both load properly

Thanks!
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Appraise.net

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back