HTML
1
2
<html>
3
<head>
4
<title>Base Tag</title>
5
<base href="http://kivabe.com" target="_blank">
6
</head>
7
<body>
8
<h1> Use of HTML Base Tag </h1>
9
<p>
10
we will add some link in this page and that will get default
11
link and default target. Please have a look on the below link.
12
</p>
13
<a href="code/try/">Live Code Editor</a> - <a href="about-us/">About Us</a>
14
<p>
15
Take your mouse upon the link above and see the url at the
16
bottom left corner of your browser !!
17
</p>
18
<p>
19
And now for the image, we did not add http://kivabe.com at the a
20
beginning in src attribute, but it get from base tag. Now just
21
change the base url and you will that the image is not loading
22
</p>
23
<img src="wp-content/uploads/2014/09/kivabe_com.jpg" alt="Image using base tag" />
24
</body>
25
</html>
CSS
โx
1
โ
JavaScript
1
1
โ
Output: