# Selects all <div> elements and all <p> elements with CSS

CSSWeb DevelopmentFront End Technology

To style, more than one element, use a comma. Separate each element with the comma to achieve this. You can try to run the following code to select <div> and <p> elements,

#### Example

Live Demo

<!DOCTYPE html>
<html>
<style>
div, p {
color: blue;
background-color: orange;
}
</style>
</html>