<img> HTML Tag

In this article I will discuss the <img> HTML Tag.
  • 1853

The HTML img tag is used for embedding images into an HTML document.The image that we want to display is given to the src attribute of the img tag.

Example

<html>

<head>

    <title></title>

</head>

<body>

    <table border="1" style="background-color:Aqua">

        <caption>

            Different Stars</caption>

        <tr>

            <td>

                Empty_star

            </td>

            <td>

                <img src="images/empty_star.png" width="100" height="100" alt="Empty_star">

            </td>

        </tr>

        <tr>

            <td>

                Filled_Star

            </td>

            <td>

                <img src="images/filled_star.png" width="100" height="100" alt="Filled_star">

            </td>

        </tr>

        <tr>

            <td>

                Waiting_Star

            </td>

            <td>

                <img src="images/waiting_star.png" width="100" height="100" alt="Waiting_star">

            </td>

        </tr>

    </table>

</body>

</html>


Output

 

img.jpg


Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.