top of page
HTML5.png

HTML

IMAGE TAG

•    This is used to insert picture or image in an HTML page.
•    This is a singular or unpaired tag.
•    This  is represented as <IMG> tag.

•    Example :-                         

<html>
    <head>
        <title> IMAGE </title>
    </head>
    <body>
        <img src="https://drive.google.com/thumbnail?id=1zGoFczd4VgB8_mEOICYWARPDnO4KVzUr" alt="RK TECH TUTORIAL" width="200" height="200">
    </body>
</html>

​

OUTPUT:

imgtag.JPG

•    Attributes:-
    1.    Src :-
        This attribute is used to give or write the path or location of the image.
    2.    Alt:-
        This attribute is used to display the text in the alternative of image, when because of some problem image cannot be displayed on the HTML page.
    3.    Width and height:-
        These attributes are used to represent the size of the image.

Related Topics

bottom of page