a segment of text. It is a container tag. That means, what you type between <center> and </center> will be displayed in the center of the browser. Chapter Pages <html> <head> <title> Center the text </title> </head> <body> <h1 align = center> Thiruvallur </h1> <center> Thiruvallur was originally known as Thiruvallur which specifies the sleeping position of the holy lord <b> "Balaji" <b> , in the <b> <u> Veeraragava swamy temple of Thiruvallur.
</b> </u> </center> </body> </html> Illustration . Center the text Output will be . Changing font style, size and color The <font> tag is used to change the style, size and color of text. It is also a container tag.
It is generally used for changing the appearance of a short segment of text. Before using <font> , you should have the knowledge about fonts. A font is a named set of certain style of character and number. Each font looks different from other fonts.
Generally some fonts are used for specific purpose. For example, Times New Roman is a style of font usually used for preparing office documents. Arial is another font style which is used for publishing work. Variety of fonts available in internet at free of cost.
Generally, a browser shows the contents as default system font setting. Every system has different font setting with another system. The general form of <font> tag with attributes: <font face= “ ” size=value color= / > Text to be displayed </font> Chapter Pages • The face is an attribute to set different font style. The name of a font has multiple words it should be specified within double quote.
• The size attribute is used to set size of the text. The size can have an absolute value from to . These predefined sizes are known as virtual size. Each virtual size is successively % larger than the previous one.
• The color attribute is used to set the color to the text. As you leant earlier color name or color code in