Common Styles

Background image

CSS

yourSelector {
  background-image: url("your-image-file");
}

JavaScript

yourVariable.style.backgroundImage = `url("your-image-file")`