Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 46 - 2615_KEC
P. 46

    Syntax of <IMG> tag:
                      <IMG SRC=“URL of the image” ALT=“alternate text” WIDTH=“500” HEIGHT=“600”>

                      ALT = “Alternate Text”
                      WIDTH = “Value of width in pixels”
                      HEIGHT = “Value of height in pixels”

                      An HTML code for inserting an image on a web page:

                      <!DOCTYPE HTML>
                      <HTML>
                      <HEAD>
                      <TITLE> Inserting Images </TITLE>
                      </HEAD>
                      <BODY>

                      <H1 STYLE = "text-align:center"> Valley of Flowers </H1>
                      <IMG 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>

                                        If HTML is a canvas and you are an artist, how would you design web pages and layout
                                        to express your creativity and style?

                                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.

                       44   Premium Edition-VII

| 41 42 43 44 45 46 47 48 49 50 51 |