How to add an Image in HTML?

 It might be tricky to add the image at first. But eventually, you will get used to it.


First, save an image anywhere on your computer, you can also save it on the Desktop like I did.

<html>

<head>

<title> MY NAME </title>

</head>

<body style="background-color:pink">

Hello everyone!! my name is Esha Rautela!!<br><hr>

I study in grade 8.<br><hr> 

:)<hr>

 <img src="C:\Users\eshar\OneDrive\Desktop\HTML.png" width="200px" height="150px">

</body>

</html>

<img src="/html/images/test.png" alt="Simply Easy Learning" width="200"
         height="80">

    Here first you have to give the location of the image. Then in alt you have to write the description for the image and in width and height you have to enter the value that you prefer for the size of the image.





We are done!!:)

Comments

Popular posts from this blog

LIST THE REASONS FOR THE FAILURE OF 1857 REVOLT.

Twist and Turn pop-up card

How to add video in HTML?