Sunday, September 8, 2019

Font and Basefont tag of html in a very easy way.


Difference between font and basefont tag in html:-

Font tag is a container tag. Basefont tag is empty tag.
We can apply font tag in a body tag where we want to do the formatting(for a particular text) but we can write basefont tag anywhere in the body tag and it will applied to the whole text of the body except the font tag style.(it will not applied to the text where we write font tag.)

Font tag is container tag so it will have opening as well as closing tag but basefont tag is a empty tag so it will not have closing tag.

Example of <font> and <basefont> tag with explanation.

<html>
<head>
<title>srps</title>
</head>
<body>
<font face="Times New Roman" color="Green" size="50px">This is SRPS. It is a very beautiful CBSE school in UP.

We get theoretical as well as practical knowledge  here. Our faculties are best in the world.</font>
<basefont color="#00ffaa" size="20px" face="Arial" >
<p>Chandrayan-2 was great mission of India but unfortunately we got some problem in it. People of my country is

having belive in ISRO scientist.<p>
Basti is a city of UP. It is located in east UP. In Basti there are many CBSE schools. SRPS is the one of the best school in UP.
</body>
</html>

Note- <Basefont tag is not supported by html 5 as well as most of the browser like chrome,internet explorer, Mozilla do not support this tag. This is the reason in my example we are not able to see the effect of basefont tag.

             

Font and Basefont tag of html in a very easy way.

Difference between font and basefont tag in html:- Font tag is a container tag. Basefont tag is empty tag. We can apply font tag in a ...