CCS#1
CCS#2
CCS#3
CCS#4
CCS#5
10

Which HTML tag is used to define an internal style sheet?

<style>

10

Which HTML attribute is used to define inline styles?

style

10

How can we write comments in CSS?

/*  */

10

In a CSS file, there is a CSS rule for paragraph tags, what can p be called?

Selector

10

Which CSS property is used to define the text color?

color

20

Which type of CSS selector is used to specify a rule to bind to a particular unique element?

id selector

20

Which type of selector is used to specify a group of elements?

Class selector

20

Is the following syntax to make the background colour of all paragraph elements to yellow correct?

all p{background-color:#yellow;}

No

20

How can you select the elements with the class name "example" in CSS?

.example

20

What type of selector is used in this case?

p {line-height: 150%;}

Element selector

30

Which is the syntax to select all paragraph elements in a div element?

div p

30

Which CSS selector is used to select the elements that do not match the selectors?

:not selector

30

How can we add more importance to a property/value than normal?

With the !important rule

30

What is the correct place to refer to an external style sheet in HTML?

In the <head> section

30

Find the specificity of this: #id

0100

40

Which are the parts of the CSS box model?

Margins, borders, padding and all the content are all components of the CSS box model.

40

How can be called as in CSS "color:red"?

Declaration

40

What type of CSS is generally recommended for designing large web pages?

External CSS

40

Find the specificity of this: li.

0001

40

What type of CSS is the following code snippet?

<h1 style="color:blue;">A Blue Heading</h1>

Inline CSS

50

Find the specificity of this: li::first-line.

0002

50

Find the specificity of this: ul ol li.red

0013

50

Find the specificity of this: ul ol+li

0003

50

Which is the correct syntax to select all the <h1> elements whose parent is a <div> element?

div > h1

50

Do pseudo-classes help apply a style to an element when in a specific state?

Yes

M
e
n
u