How to call image in HTML
  • The <IMG> tag defines an image in an HTML page.


    There are many attributes in <IMG> tag but the most common attributes are.
    • src        (use for give image source where the image is located)
    • alt         (use for give image caption some times the image not display for some reason)
    • width     (use for set image width)
    • height    (use for set image height)
    first of all make a folder and add your image in this folder and also your HTML file

    <Image src="image1.jpg" width="400" height="300">

    The browser shows result like this

    image

    now using alt attribute

    <Image src="image1.jpg" width="400" height="300" alt="coding resolved">

    The browser shows result something like that when the image not display on your page

    image
    Untitled-1.jpg
    427 x 416 - 53K
    Untitled-1.jpg
    434 x 325 - 7K
    hussainroyal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Optimum Creative