MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
are parts of CSS code where a property and value for the selector are displayed inside a pair of curly brackets. {font-size:1.5em;}
A
Declarations
B
Mood Board
C
Selector
D
CSS3
E
Web Host / Web Server
Explanation: 

Detailed explanation-1: -A CSS rule consists of two main parts: selector (’h1’) and declaration (’color: red’). In HTML, element names are case-insensitive so ‘h1’ works just as well as ‘H1’.

Detailed explanation-2: -A CSS selector is the first part of a CSS Rule. It is a pattern of elements and other terms that tell the browser which HTML elements should be selected to have the CSS property values inside the rule applied to them.

Detailed explanation-3: -A selector group and an associated declarations block, together, are called a ruleset, or often a rule.

Detailed explanation-4: -Which of the following CSS selectors are used to specify a group of elements? Explanation: Class selectors are used to specify a group of elements. Id selector specifies a particular unique element.

There is 1 question to complete.