Page 106 - ConceptGP_C7_Fb
P. 106

IMAGES WITH CSS

                  We can use CSS to control the display of the image. To control the display of the image we can set
                  the following image properties using CSS:

                     Border: To set the width of an image border.
                     Height: To set the height of an image.

                     Width: To set the width of an image.
                  Write HTML code to set properties of an image using CSS.

                  <!DOCTYPE HTML>
                  <HTML>
                  <HEAD>
                  <TITLE> Images - CSS </TITLE>
                  </HEAD>
                  <BODY>
                  <H1 ALIGN = "CENTER">Valley of Flowers </H1>
                  <IMG STYLE = "Border:10px Solid Black; Height:200px; Width:250px;"
                  SRC = "D:\Valley_of_Flower.jpg">
                  <P> Valley of Flowers National Park is an Indian national park, located
                  in North Chamoli and Pithoragarh, in the state of Uttarakhand and is
                  known  for  its  meadows  of  endemic  alpine  flowers  and  the  variety  of
                  flora.
                  </P>
                  </BODY>
                  </HTML>








                            HYPERLINK IN HTML


                  A website is a collection of web pages that are interlinked with each other and contains related
                  information. These web pages are linked with the help of a feature of HTML called a hyperlink.



                  104   Premium Edition-VII
   101   102   103   104   105   106   107   108   109   110   111