Wednesday, 11 December 2013

HTML : BASE


base
Defines the base location for links on a page.
Relative links within a document (such as <a href="WWW.GOOGLE.COM.html"...or <img src="someimage.jpg"...) will become relative to the URI specified in the base tag.
The base tag must go inside the headelement.
Required Attributes
  • href is used to specify the location on the base URI.
Example

<head>
        <title>Peppers</title>
        <base href="http://www.somedomain.com/directory/" />
</head>
<body>
        <p><a href="someplace.html">This</a> will actually link to http://www.somedomain.com/directory/someplace.html.</p>
        <div><img src="someimage.jpg" alt="Some image"/></div>
        <p> The location of the above image will be actually be http://www.somedomain.com/directory/someimage.jpg.</p>
</body>

No comments:

Post a Comment

Physics basic inventions and inventors

1.Which instrument is used to measure altitudes in aircraft's ? Audiometer Ammeter Altimeter Anemometer Explanation : ...