C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

What is base tag and how to use base tag?

0 votes
20 views
asked by rock Expert (14,990 points)

1 Answer

0 votes
Description

This element establishes a base URL for the website. This allows you to direct every link in the page to a specific site.

<base> is useful in forcing all page links to be opened in a new window by setting the target attribute to _blank. This element is inserted within the <head> element.

<base href='' target=''/>

Example

<html>
<head>
<base href="http://www.proanswers.org/" target="_blank">
</head>
<body>
     <p>
          <a href="index.htm">Click here</a>.
     </p>
</body>
</html>
answered by sunny Expert (11,410 points)

Related questions

0 votes
1 answer 29 views
0 votes
1 answer 25 views
25 views asked by sunny Expert (11,410 points)
0 votes
1 answer 14 views
14 views asked by rock Expert (14,990 points)
0 votes
1 answer 9 views
9 views asked by rock Expert (14,990 points)
0 votes
1 answer 12 views
12 views asked by rock Expert (14,990 points)
...