css set background image url with link code example
Example 1: how to add image with url in css
background-image: url('images/my-image.png');
Example 2: how to embed a url in html for background
div {
/* Background pattern from Toptal Subtle Patterns */
background-image: url("https://amymhaddad.s3.amazonaws.com/morocco-blue.png");
height: 400px;
width: 100%;
}