The <base> tag defines a default URL, for links inside a document. You can use only one <base> tag in a document, and must be placed on top of all the elements inside the <head> tag.
This allows browser to load the <base> element first so elements followed after can use information stored inside.
Quick <base> tag DOs And DON'Ts
- The <base> tag resides always inside the <head> tags.
- The <base> tag defines a default target and, or address for the entire page.
- The <base> tag is an empty tag and must be properly closed in XHTML as in Illustration below, otherwise should be closed without forward slash.
- In HTML4 and 5 the <base> tag will look like this; <base href="URL">
- The <base> tag doesn't assistance any standard attributes.
- The <base> tag uses either an href attribute, a target attribute, or both.
- The <base> element is supported in all browsers, and is not changed in HTML5 as from XHTML.
See Illustration below.
Defining <base> Image Source And Target For Links In The <head> Section.
<head> <base href="http://www.ghanachild.com/images/" target="_blank" /> </head>
Relative Image Source And Non-Target URL Inside <body>.
<body> <img src="animated_logo.gif" /> <a href="http://www.ghanachild.com">GhanaChild</a> </body>
Explaining The <base> URL Usage | Image Source.
In the <head> Section illustration above, the <base> URL for images is defined within the <head> tag, notifying browsers to look for images inside http://www.ghanachild.com/images [standard images folder].
This allow us to specify image addresses relatively in our document, [See <body> Content above].
And browsers will go looking for images inside our defined <base> URL.
See illustration below.
If we specify image source like so; <img src="animated_logo.gif" /> Browser sees it like so; <img src="http://www.ghanachild.com/images/ animated_logo.gif" />
Explaining The <base> Target Usage | Links.
Notice also that our defined link in the <body> content illustration has no target. However, the <base> target defined in the <head> Content takes care of, that our document opens in a new window whenever a user clicks on its link.
See illustration below.
If we specify a link like so; <a href="http://www.ghanachild.com">GhanaChild</a> Browser sees it like so; <a href="http://www.ghanachild.com" target="_blank">GhanaChild</a>
HTML Base Element
- The Hottest Stuff. Burning Hot!
- How To Find Success In Business
- Free Website Creation Tutorials
- Free Blog Creation Tutorials
- Scripting Tutorials
- Adobe Trail Products And Tutorials
- Sony Creative Software Tutorials And Trails
- Entertainment Corner, More Music And Videos
- Explaining Bitmap And Vector Graphics
- Desktop Audio Recording Setup
- Audacity, A Robust Free Audio Recording Software
- Learn Digital Sound Recording And Editing.
- Learn How To Use FL-Studio Easily.
- Selective Youtube Web-Video Tutorials.
- Get The In-Depth Free SEO Training.
- Affiliate Marketing Tips And Tricks
- Ghana Oil Boom.
- File Synchronization Tool
- Get Free Templates For Your Website
- Download Absolute Free Software
- Visit Our Knowledge Base
Man will give you worldly powers, and make you feel on top of all, note this is temporally and could be redrawn at anytime sending you back to the ground floor of life. However, the Lord Almighty, the one and the only rightful ruler of the Universe, blesses everlastingly.
Knowledge is Power, but Power is not Knowledge. Wisdom is the truthful Power that identifies the Knowledge within the man. And only, I repeat 3x. Only the almighty God has the power to bless the man with his Wisdom forever.
To achieve the Lord's blessings, cease not praying daily, asking for his Wisdom, and you'll be blessed abundantly...
Spyera Phone version is software that you install on a smart phone to monitor everything happening on the phone. After installation, SPYERA secretly records events (sms, call history, phone book, location, emails, What's App messages, IM, Facebook Chat, Skype, See photos taken and many more...) that happen on the phone and delivers these information to a web account, where you can view these reports 24/7 from any Internet enabled computer or mobile phone. SPYERA also allows you to listen to the surroundings of the target mobile , listen to the phone conversation and to know the location of the device.
Please, Kindly Donate What You Can, Enabling Us Pay Hosting And Domain Costing, And Do More.