Answer to Question #28170 in AJAX | JavaScript | HTML | PHP for david woods

Question #28170
How can i nsert a picture box into my webpage.Help me with the code.Thank you
Expert's answer
To insert image box in your web page you can use HTML tag<img>. This tag has following attributes:
src - URL (path) to your image file.
alt - alternate text for the image.

Few examples of usage:

We want to insert an image image.png to the web page page.html

<img src="image.png" alt="This isimage" /> - image.png is in the same folder as page.html.
<img src="img/image.png" alt="This isimage" /> - img folder is in the same folder as page.html, image.png is
in the img folder.
<img src=""alt="This is image" /> - image.png is accessible via URL
<img src="../img/image.png" alt="This isimage" /> - you can use relative path to image.png.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

New on Blog