CSS Multiple choices

Total available count: 25
Subject - Web Development
Subsubject - CSS

How do you, group selectors?







Grouping Selectors in CSS:-

The CSS grouping selector is used to select multiple elements and style them together. This reduces the code and to put extra effort to declare common styles for each element. Each selector is separated by a space for group selectors.

The following code illustrates the syntax for CSS grouping selector,

element, element {
The following examples illustrate CSS grouping selector,

<!DOCTYPE html>
  article, p, img {
    display: block;
    margin: auto;
    text-align: center;
    border-bottom: double red;
   <article>SlightBook Demo Text</article>
   <p>This is SlightBook demo text.</p>
   <img src="https://www.slightbook.com/Images/Logo.png">


Next 5 multiple choice(s)


How do you select all p elements inside a div element?


How do you select elements with the class name "test"?


How do you select an element with id "demo"?


How do you make a list that lists its items with squares?


When using the padding property; are you allowed to use negative values?