FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What does a class do?
A
adds color to words
B
adds style to specific elements
C
adds style to a whole page
D
adds a lot more work
Explanation: 

Detailed explanation-1: -If you want to use a class, use a full stop (.) followed by the class name in a style block. Next, use a bracket called a declaration block that contains the property to stylize the element, such as text color or text size. CSS Classes will help you stylize HTML elements quickly.

Detailed explanation-2: -Classes allow CSS and JavaScript to select and access specific elements via the class selectors or functions like the DOM method document.

Detailed explanation-3: -The addClass() method adds a class to the selector and removeClass() removes the CSS class for the selector.

There is 1 question to complete.