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

Ensure that an image which we want to insert on the web page should be saved at the same location where we have
                 saved our HTML file. If we want to insert an image from any other location, we need to provide the complete path
                 of the image to the SRC attribute. For example, if our image is saved in the D: drive of computer then the path of the
                 image will be D:\lily.jpg.


                                                  Lab Assignment ‘n Activity                        Experiential Learning
                                                                                                   Computational Thinking

                    Type the following code and see the output.
                    <!DOCTYPE html>

                    <html>
                    <head>
                    </head>
                    <body text="blue">

                    <font color="red">
                    <h1> Interesting Facts about India</h1> </font>
                    <font size=4><p>With roughly 11,873 millilitres of rain every year,
                    Meghalaya village has broken the Guinness World Record for the wettest spot
                    on Earth.
                    It takes six months for the monsoon season to arrive. <br> <br>

                    <img src="smiley.jpg" width="120" height="80" alt="Smiley" align="right"/>
                    Varanasi is a holy city with around 23,000 temples. <br><br>
                    The glacial Lake Roopkund, located at 16,470 feet in the Himalayas,
                    is famed for the human bones discovered in the lake and surrounding regions.
                    </p> </font>
                    </body>

                    </html>








                                                                            Website Development using HTML and CSS   165
   162   163   164   165   166   167   168   169   170   171   172