HTML CSS

HTML CSS

University

8 Qs

quiz-placeholder

Similar activities

Hojas de Estilo

Hojas de Estilo

University

10 Qs

O que vamos aprender?

O que vamos aprender?

1st Grade - University

12 Qs

HĐH Linux - 20CT111 20CT112

HĐH Linux - 20CT111 20CT112

University

10 Qs

EDUCATIONAL TECHNOLOGY

EDUCATIONAL TECHNOLOGY

University

13 Qs

DS-U2-QUIZ2

DS-U2-QUIZ2

University

12 Qs

Kuis Sapa.id 4

Kuis Sapa.id 4

University

13 Qs

C Language

C Language

10th Grade - University

11 Qs

Create a Website 1

Create a Website 1

KG - University

10 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