The css() Method
css reads and writes style properties. Pass an object to set several at once.
Example
$('p').css('color', 'red');
$('p').css({ color: 'blue', fontSize: '20px' });
const c = $('p').css('color');Exercise
Set several properties.
$('p').css()
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.