Saturday 26 February 2022

HTML document for Image Tag

 IMAGE TAG

Code :

<!doctype html>

<html>

    <head>

       <title>Image Tag</title>

    </head>

    <body>

       <h1>Insert Image</h1>

       <p>

         You can insert any image in your web page by using &#60img&#62 tag. Following is the simple syntax to use this tag.<br><br>

         &#60img src = &#34Image URL&#34 ...attributes... /&#62

         

       </p>

       <p>

       The &#60img&#62 tag is an empty tag, which means that, it can contain only list of attributes and it has no closing tag.

       </p>

       <p><b>Example :</b></p>

       <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRBTA89Ul3UGxrlqRC5YTYhZFca_8374SCdXz8kHQyc5l7T7Uf686rc27A&s=10" style="border: 2px solid green; border-radius: 4px" width="100%" alt="bg_img" />

    </body>

</html>

Web View :

Come again Learn again !

« iCodeBuzz »


No comments:

Post a Comment