How can I get to add images to html5 code

50 views Asked by At

I'm trying add the images to html5 code.

 <!DOCTYPE html>
<html>
<head>
<title> trying the code </title>
<body>
<h1> html code </h1>
<img src="YOUniverse-swati1.jpg"/>
</body>
</html>
1

There are 1 answers

1
Satnam Singh On BEST ANSWER

Just by using the <img> tag - For Example-

<img src="nature.jpg" alt="Nature" />

Just make sure that the image name is correct & is placed in the same folder.