0 votes
130 views
in HTML by (3.5k points)
edited

How to insert an image in HTML?

1 Answer

0 votes
by (3.5k points)
selected by
 
Best answer

<img> tag is used to add an image in a web page.

Images are not inserted into a web page basically they are linked to web pages. The <img> tag helps to create a holding space for the referenced image.

The <img> tag is normally empty, it has attributes only, and does not have a closing tag.

 <img> tag has two required parameters:

  • src – The path to the image
  • alt – An alternate text for the image

To insert a image in html you need to use img tag:

<img src="image path" alt="Image description">

Related questions

0 votes
1 answer 164 views
asked Jun 24, 2023 in HTML by Doubtly (98.9k points)
0 votes
1 answer 140 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 126 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 117 views
0 votes
1 answer 123 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 104 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...