Search Header Logo

CSSdkdjjd

Authored by VIVAAN SHEORAN

Mathematics

1st - 5th Grade

Used 1+ times

CSSdkdjjd
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the background colour of the <div> element in the following scenario?

css

body { background-color: red; } .container { background-color: green !important; } .container { background-color: blue; }

html

<div class="container"></div>

Red

Green

Blue

Transparent

Orange

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What are the three ways of CSS that can be embedded into an HTML document?

Outline CSS

Inline CSS

External CSS

Internal CSS

Embedded CSS

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the font size of the <h1> element in the following scenario?

css

body { font-size: 16px; } .header { font-size: 24px !important; } .header { font-size: 32px; }

html

<h1 class="header">Welcome</h1>

16px

32px

18px

24px

12px

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about the border property in CSS is true?

A) The border property is shorthand for setting border-width, border-style, and border-color together.

B) If you define border first and then set border-left, it removes the entire border.

C) The border-style property is optional when defining a border.

D) Borders are always visible, even if no border-style is defined.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where should internal CSS be placed in an HTML document?

A) Inside the <head> section within <style> tags

B) Inside the <body> section within <style> tags

C) In a separate CSS file linked using <link>

D) Directly inside an element using the style attribute

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following CSS properties is not used for text formatting?

A) text-align

B) font-weight

C) border

D) text-transform

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property is used to change the spacing between lines of text?


A) letter-spacing

B) line-height

C) word-spacing

D) text-indent

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?