To add background color of <marquee> element, the bgcolor attribute is used.

Example : set background color to marquee element. #
<marquee bgcolor="red">Hello world</marquee>
Try it Yourself »

Set background color to marquee element using CSS. #

We can also use the css properties to add background color, border, padding, margin etc. to the marquee element.

Add style to marquee element using css. #
<marquee>Hello world</marquee>
<style>
 marquee {
  background-color: blue;
  color:#fff;
  padding:5px 15px;
  border:5px solid gold;
}
</style> 
Try it Yourself »

We can change the marquee speed using the scrollamount attribute.

<marquee scrollamount="30">Hello world</marquee>