How to change html li tag background when mouse hovers over it in css

To change html li tag background when mouse hovers over it in css, we can use li:hover in css.

For example:

div li:hover{

    background:#ccc;

}