backgroud image on a div code example
Example 1: background image html
<!-- Background images are better implemented in CSS -->
<!-- but here is how you could do it in HTML in a pinch -->
<head>
<style>
.background {
background-image: url(https://cleananddelicious.com/wp-content/uploads/2016/03/Avocad0-CD.jpg);
}
</style>
</head>
<body>
<div class=background>
<h1>The background of this div will be an avocado</h1>
</div>
</body>
Example 2: background image css
html,body {
background-image: url("your.picture");
}
Example 3: css background image
background-image: url("image.gif");
Example 4: background url with color css
background: linear-gradient(0deg, rgba(2,173,231,0.5), rgba(2,173,231,0.5)), url(images/mba-grid-5px-bg.png) repeat;