How can you apply CSS styles to an element using jQuery?
Description : Use the .css() method to apply CSS styles to an element.
Answer :
To apply CSS styles to an element using jQuery, use the `.css()` method. For example,`$('#elementId').css('background-color', 'yellow');` sets the background color of the element withID`elementId` to yellow. The `.css()` method can also accept an object with multiple CSS properties and values, such as`$('#elementId').css({ 'color': 'blue', 'font-size': '14px' });`. This allows you to apply multiple styles simultaneously and dynamically modify the appearance of elements.