English, asked by andypandit5750, 10 months ago

What is the correct HTML for inserting an image in HTML

Answers

Answered by pranavchoudhary1056
1

Explanation:

<BODY background = "filename.ext" >

filename is the name of image file with extension

Answered by rasbinsoundlines
2

Answer:

The correct HTML tag for working on an image is <img />

If you are looking for putting background image, you can have a look on the previous answer by another user before my answer here.

Explanation:

You can use this <img tag in the following way :

<img src="you should write path of the image here" />

Here is the simple and detailed explanation in this blog post.

https://codewithrasbin.com/html-for-beginners-course-lesson-5-how-to-display-images-in-a-web-page/

Hope this helps!

Similar questions