.css() in jQuery

It helps to sets or returns one or more style properties for the selected elements.

.css()

// To add new styles.

$(“p”).css(“background-color”,”yellow”);
$(“p”).css({“background-color”:”yellow”,”font-size”:”100%”});