HTML CSS

HTML CSS

University

8 Qs

quiz-placeholder

Similar activities

BASIC HTML

BASIC HTML

University

9 Qs

Logika

Logika

University

13 Qs

Dry Run

Dry Run

University

11 Qs

IEEE Coding Competition

IEEE Coding Competition

University

13 Qs

The Language Sloth - HTML Pop Quiz

The Language Sloth - HTML Pop Quiz

7th Grade - Professional Development

10 Qs

Computación con Membranas

Computación con Membranas

University

11 Qs

BPJS Pretest

BPJS Pretest

University

10 Qs

Basic Cloud Computing Concepts Quiz

Basic Cloud Computing Concepts Quiz

University

12 Qs

HTML CSS

HTML CSS

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Ninitha C

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default display value for a <div> element in CSS?

inline
inline-block
block
flex

Answer explanation

A div is a block level element and hence displays one after another

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

In the given the HTML and CSS code, how can you ensure the background image covers the entire element and maintains its aspect ratio?ese celestial bodies are planets?

contain
cover
fill
none

Answer explanation

cover is used to fill the entire space with the image.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In CSS, what is the difference between an ID and a class selector?

Ds are for styling multiple elements, while classes are for single elements.
IDs are for single elements, while classes are for styling multiple elements.
IDs and classes can be used interchangeably.
IDs and classes have no difference in CSS.

Answer explanation

you cannot have same id name across multiple html elements.whereas multiple html elements can use the same class names for styling

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct CSS link tag?

<link rel="styles" href="stylesheet.css">
<link href="stylesheet">
<link rel="stylesheet" src="styles.css">
<link rel="stylesheet" href="styles.css">

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you select an element with id "demo"?

demo
#demo
.demo
*demo

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you select all p elements inside a div element?

div.p
div + p
div p
div > p

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If the elements - <p>, <h4> and <a> tags are needed to be of the orange color, then which of the following will do this?

p h4 a { color: orange; }
p; h4; a { color: orange; }
p+a+h4 { color: orange; }
h4, a, p { color: orange; }

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?

Discover more resources for Computers