Computer Science, asked by Anonymous, 1 year ago

how to write a html code for inserting an image having 300*200 size where image name is "IMG101" and its extension is ".jpg"

Answers

Answered by siddhartharao77
4
Here is the code to insert an image:

<html>
<head>
<title>HTML demo session</title>
</head>
<body
<img src="IMG101.jpg" alt="hello" style="width:200px;height:300px">
</body>
</html>

No need to close img tag because it is an Empty Element.



<!Hope this helps-->

Anonymous: thank u soo much
siddhartharao77: :-)))
Answered by duragpalsingh
2
Hey!

<html>
<head>
<title>Inserting Image</title>
</head>
<body
<img src="IMG101.jpg" style="width:200px;height:300px">
</body>
</html>
Similar questions