Font tag
<Font> or font tag plays an important role in rendering a document properly via HTML. <Font size = "5" face = "Tahoma" color = "red"> Bangladesh is a beautiful country. </ Font> Here Size = "5" is an attribute of the font tag, which represents the element that is Bangladesh is a beautiful country. How would the size of the text be? Besides, face = "Tahoma" reveals the text of the text, titled Tahoma and color = "red", and the color of the text will be red.
Example Programs
<Html>
<Head>
<Title> www.tutohost.com </ title>
</ Head>
<Body bgcolor = "green">
<Font size = "2" face = "verdana">
This is a paragraph
</ Font>
<br />
<Font size = "5" face = "Tahoma" color = "red">
Bangladesh is a beautiful country
</ Font>
</ Body>
</ Html>
Open a Notepad and enter the code at the top and save the file by clicking on Save as by clicking on File name: index.html, Save as type: All files, save index.html file with Mozilla Firefox, and look like a picture next to it.
<Font> or font tag plays an important role in rendering a document properly via HTML. <Font size = "5" face = "Tahoma" color = "red"> Bangladesh is a beautiful country. </ Font> Here Size = "5" is an attribute of the font tag, which represents the element that is Bangladesh is a beautiful country. How would the size of the text be? Besides, face = "Tahoma" reveals the text of the text, titled Tahoma and color = "red", and the color of the text will be red.
Example Programs
<Html>
<Head>
<Title> www.tutohost.com </ title>
</ Head>
<Body bgcolor = "green">
<Font size = "2" face = "verdana">
This is a paragraph
</ Font>
<br />
<Font size = "5" face = "Tahoma" color = "red">
Bangladesh is a beautiful country
</ Font>
</ Body>
</ Html>
Open a Notepad and enter the code at the top and save the file by clicking on Save as by clicking on File name: index.html, Save as type: All files, save index.html file with Mozilla Firefox, and look like a picture next to it.
No comments:
Post a Comment