CSS Multiple choices


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

How do you, group selectors?


 

 

 

 



A


Solution:-

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 {
   /*declarations*/
}
The following examples illustrate CSS grouping selector,

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

 




Next 3 multiple choice(s)

1

What is the default value of the position property?

2

What happens if you open the external CSS file in a browser?

3

What does CSS stand for?

Comments