Base href

Category
css, HTML
Date Created
7th May 2010
Last Updated
9th Jul 2010

Base href

Question

How to set the base href

Answer

You can set the base href from the default to the required. For example assume the following HTML code is included.

<base href="http://beamish/flat/sIFR/" />

Thereafter all references would precede with: http://beamish/flat/sIFR/

Therefore:

<script src="http://www.zerotouch.com/sifr.js" type="text/javascript"></script>

Would infact call:

http://beamish/flat/sIFR/sifr.js

Related terms