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
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-->
<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
Answered by
2
Hey!
<html>
<head>
<title>Inserting Image</title>
</head>
<body
<img src="IMG101.jpg" style="width:200px;height:300px">
</body>
</html>
<html>
<head>
<title>Inserting Image</title>
</head>
<body
<img src="IMG101.jpg" style="width:200px;height:300px">
</body>
</html>
Similar questions
English,
8 months ago
English,
8 months ago
Hindi,
8 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
English,
1 year ago
Biology,
1 year ago