Html base and links

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back