Page 353 - Web Applications (803) Class 11
P. 353

Practical Work






                                                                                                      Computational Thinking

                                                                                                           Creativity
                 HTML/CSS
                                                                                                        Life Skills & Values

                   1.  Write a program to print a paragraph with different font and color.

                  Ans.  <!DOCTYPE html>
                      <html>
                      <body>

                      <p>
                      <font face=”Arial” color=”red”>
                      Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s.
                      </font>

                      <font face=”Times New Roman” color=”blue”>It is the core
                      Lorem Ipsum is simply dummy text of the printing and typesetting industry.
                      </font>
                      <font face=”Verdana” color=”green”>
                      It has survived not only five centuries.

                      </font>
                      <font face=”Helvetica” color=”orange”>
                      It is a long established fact that a reader will be distracted by the
                      readable content of a page when looking at its layout.

                      </font>
                      </p>
                      </body
                      </html>
                   2.  Write a program in html to show different font properties.

                  Ans.  <!DOCTYPE html>
                      <HTML> <HEAD> <STYLE>
                      H1 {color: blue; font-family: verdana; font-size: 32px; text-align:

                      center}
                      H2 {color: Green; font-family: Arial; font-size: 25px; text-align:
                      center}
                      </STYLE> </HEAD>
                      <BODY>



                                                                                                     Practical Work  351
   348   349   350   351   352   353   354   355   356   357   358