Page 98 - Plus_V2.2_C7_Flipbook
P. 98

Font Weight
                  The ‘font-weight’ property is used to set the thickness or boldness of the font.

                  Example: <P STYLE=“FONT-WEIGHT: BOLD;”>
                  TEXT
                  </P>
                  Let us create a web page to set font style.



                    <!DOCTYPE html>
                    <HTML>
                    <HEAD>
                        <STYLE>
                            body {
                                font-family: Arial, sans-serif;
                            }
                            h1 {
                                color: #3457;
                            }
                            p{
                                font-weight: bold;
                            }
                        </STYLE>
                        <TITLE>Font Weight Example</TITLE>
                    </HEAD>
                    <BODY>
                        <H1>Font Weight Example</H1>
                        <P>This is bold text.</P>
                    </BODY>
                    </HTML>

                  Output:















                                                           Font Weight Example
                  Let us now create a web page using font-family, font-style, font-size, and font-weight properties in a
                  simple HTML webpage.




                  96    Premium Edition-VII
   93   94   95   96   97   98   99   100   101   102   103