hexadecimal may be used. <html> <head> <title> Changing Font Properties </title> </head> <body> <font face="Arial Black" size= color=red> Font Size </font> <br> <font face="Arial Black" size= color=blue> Font Size </font> <br> <font face="Arial Black" size= color=green> Font Size </font> <br> <font face="Arial Black" size= color=yellow> Font Size </font> <br> <font face="Arial Black" size= color=pink> Font Size </font> <br> <font face="Arial Black" size= color=red> Font Size </font> <br> <font face="Arial Black" size= color=blue> Font Size </font> <br> </body> </html> Illustration . HTML code to change font properties The output will be: Note: The <font> tag is not supported by HTML5. Multiple fonts with face attribute: As you learnt already, the face attribute of font tag is used to change font style of a segment of text.
In face attribute, you can assign more than one font-name at a time within double quotes with comma. For example, <font face = "Bookman old style1, Broadway1, Forte, Arial"> Chapter Pages Welcome to HTML </font> Browser first tries to find out whether the font-name in the list is supported or not. If the first font is not supported by the browser, then it displays the text in second font, otherwise it will display next one. If no font in the list is supported, then the browser display the in the default font.
In the above code, consider the font names “Bookman old style1” and “Broadway1” are not supported by any browser. (Because, the names has been changed). So, the text “Welcome to HTML” will be displayed in “Forte” style. If your browser not supported “Forte” font, the text will be displayed in “Arial” font, otherwise the browser shows the text as in default font setting.
In the case of Internet explorer, the “Times New Roman” is the default font to display the contents. . Section Break The <hr> (Horizontal Rules) tag, which is known as “Thematic Breaks” separate sections of an HTML document visually. It produces a horizontal line spread across the width of the browser.
This is an empty tag,