To add an image to a webpage . Which tag is used ( ,image SRC=" " FILENAME" >)
Answers
Answered by
3
to add an image to a webpage .......
<!DOCTYPE html>
<html>
<head>
<title>inserting image </title>
<style type=“text/css”>
image{border: 4px solid orange;
width: 120px; height: 100px}
h2{ text-transform: uppercase}
</style>
</head>
<body>
<h2>inserting image</h2>
<img src="penguin.jpg">
<OMG src="penguin. jpg"
alt="image is not available ">
</body> </html>
<!DOCTYPE html>
<html>
<head>
<title>inserting image </title>
<style type=“text/css”>
image{border: 4px solid orange;
width: 120px; height: 100px}
h2{ text-transform: uppercase}
</style>
</head>
<body>
<h2>inserting image</h2>
<img src="penguin.jpg">
<OMG src="penguin. jpg"
alt="image is not available ">
</body> </html>
manas239:
please mark me as brainliest if I helped you
Answered by
4
The tag which you're looking for is <img> tag.
It is used to add an image to the webpage. It requires three main attributes in order to show the picture properly on the page- src( specifies the source/URL of the image), height (specifies the height of the image on page which is generally expressed in pixels), width (specifies the width of the image on page which is also expressed in pixels) .
The syntax for using an <img> tag is: <img src="IMAGE URL HERE" height= "200px" width="400px">. NOTE: <img> is a single tag and does not require a closing tag.
Similar questions