FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
You can apply formatting to multiple elements at once by listing each in the selector, separated by ____
A
periods
B
commas
C
quotation marks
D
<>
Explanation: 

Detailed explanation-1: -a) Multiple selectors separated by a comma(, )-Same styles are applied to all selected elements. Here border style is applied to DIV elements and CSS class . elmnt-color applied elements. b) Multiple selectors separated by space – Those are called descendant selectors.

Detailed explanation-2: -A comma-separated list of selectors represents the union of all elements selected by each of the individual selectors in the list. (A comma is U+002C.) For example, in CSS when several selectors share the same declarations, they may be grouped into a comma-separated list.

Detailed explanation-3: -The class selector is useful for targeting multiple elements, things like cards or images that you want to have matching styles. To select an element with a specific class, you use a . character (period) and then follow it with the class name. Let’s look a CSS selector example for the class selector.

Detailed explanation-4: -Using Commas to Separate Selectors This is what the comma does in the selector, it allows us to have multiple selectors in one rule. Not only does this approach make for leaner, cleaner CSS files, it also makes future updates so much easier.

There is 1 question to complete.