FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What symbol should you use to target a class name in css?
A
#
B
()
C
.
D
class
Explanation: 

Detailed explanation-1: -To select elements with a specific class, write a period (.) character, followed by the class name.

Detailed explanation-2: -In the CSS, a class selector is a name preceded by a full stop (“.”) and an ID selector is a name preceded by a hash character (“#”).

Detailed explanation-3: -[class^="status-"]-starts with “status-” [class*=” status-"]-contains the substring “status-” occurring directly after a space character. Class names are separated by whitespace per the HTML spec, hence the significant space character.

Detailed explanation-4: -The hashtag ‘#’ is an id selector used to target a single specific element with a unique id, while a period ‘. ‘ is a class selector used to target multiple elements with a particular class. Put into play, here is how it would look: <div id="red">This will be red.</

Detailed explanation-5: -Class selectors The class selector starts with a dot ( . ) character. It will select everything in the document with that class applied to it.

There is 1 question to complete.