html to add image as background code example
Example: how to add a background image in html
<!-- HTML -->
<div id="imageDiv"></div>
<!-- CSS -->
<style>
#imageDiv {
background-image: url('someimage.png');
}
</style>
<!-- HTML -->
<div id="imageDiv"></div>
<!-- CSS -->
<style>
#imageDiv {
background-image: url('someimage.png');
}
</style>