mention the suitable html tag and the attributes to insert an image named globe.jpg in the background of a webpage
Answers
Answered by
3
●The Answer For This Question Is:- ●
【<IMG>】tag
Anonymous:
Follow me Please
Answered by
1
For adding an image in a website we need to write the following code, of HTML:-
First we shall create a class in CSS, like
- .img-bck
{
width: auto;
height: auto;
background-image: url (../img/globe.jpg);
}
Now we shall use that in HTML code like
<html>
<head>
<body>
<p class="img-bck"><img src="globe.jpg"/></p>
</body>
</head>
</html>
Similar questions