Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

base

The <base> element resolves relative links within a web document. It gets placed within the <head> element of your document before any other elements that have attributes that take URLs to make sure that their relative paths are resolved by the base element.

Code Example

<base href="http://www.developphp.com/" target="_blank">

Attributes

globals - the global attributes common to all elements possible values: see global attribute list href - specify the path possible values: "path/to/base" target - specify the browsing context(how the document is opened) possible values: "_blank", "_self", "_parent", "_top"

HTML

Elements

aabbraddressareaasidearticleaudiobbasebdobdiblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldetailsdfndialogdivdldtemembedfieldsetfigcaptionfigurefooterformh1 h2 h3 h4 h5 h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrb rp rt rtc rubyssampscriptsectionselectsmallsourcespanstrongstylesub supsummarytabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr