HOME
            About US
            Contact Us
            Fun Games

Base Tags in HTML
Base Tags in HTMLBase Tags in HTML

Chapter - 12 Special Characters & Other Tags (Base Tags in HTML): (Page 3/4)


(Cotinued from previous page)

12.5- Base Tags:
i) Base Tag For Link : if many of our 'Link' are diverted to a particular site, then to reduce the text in HTML file this tag is used. This is used in between <head> and </head> tag.

E.g. let us say that our most of the links are targeted to some page of http://www.funandhobby.com and we want all to be open in a new window. Then

<html>
<head>
<base href='http://www.funandhobby.com/' />
<base target='_blank' />
</head>

<body>
<a href='test1.html'>Test 1</a>
<a href='test2.html'>Test 2</a>
</body>
</html>
Now the browser will read as <a href='test1.html'> as href=http://www.funandhobby.com/test1.html and so on.

ii) Base Tag for Fonts: As base tag for link if we want to define the base font size, font color etc. we can use 'basefont' tag. This tag is also define in between <head> and </head> tag.

<head>
<basefont color='blue' size='3' />
</head>
Any 'font' tag in between the web page will supersede this.


12.6- Block Quote (quotations): To give emphasis, the Quotations / citations are written separately. They appear on a separate line. The 'blockquote' tag writes the text in a separate line, separated by space and margins.

Command:
The XYZ said:
<blockquote>
quotation quotation quotation quotation quotation quotation quotation quotation quotation quotation.
</blockquote>
Output:
The XYZ said:
quotation quotation quotation quotation quotation quotation quotation quotation quotation quotation.

(Cont......... to next page (Pg-4))

© funandhobby.com (Base Tags in HTML)