Display Image in HTML Page


HTML Display Image in HTML Page Html Images

How can i show an image in HTML page ?

There are few HTML tags that are not in pair. They have no ending seperate tag. img is one of them. <img src="image_address.extention" /> src (the attribute of img tag) is the source address of the image e.g images/nature.png <html> <head> <title>My First HTML Page</title> </head> <body> <img src="nature.png" /> </body> </html> There is the attribute "alt" of img tag . When an image not display due to source file unavailability , then this attribute display instead of image. <img alt="Nature Image" src="nature.png" /> We can also adjust height and width of the image using height and width attributes. <img height="100" width="100" alt="Nature Image" src="nature.png" /> In XHTML the tag must be properly closed . While in HTML there is not necessary required " / " at the end of the tag. Follow the Chapter Sequence , You can Learn HTML in our short Course. Our Chapters are easy,short and cover all the contents of the HTML language
HTML Html Images Chapter Next »