Html base and links

SpaceshipSpaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back