HTML CSS

HTML CSS

University

8 Qs

quiz-placeholder

Similar activities

Pemrograman Web dan Perangkat Bergerak

Pemrograman Web dan Perangkat Bergerak

University - Professional Development

10 Qs

2025 - Programación web - #2

2025 - Programación web - #2

University

10 Qs

Programación Web II

Programación Web II

University

10 Qs

QUIZ PEMOGRAMAN WEB

QUIZ PEMOGRAMAN WEB

11th Grade - University

10 Qs

Quis CSS W3Schools

Quis CSS W3Schools

University

10 Qs

DOM manipulation review

DOM manipulation review

University

10 Qs

Intro Bootrstrap

Intro Bootrstrap

University

10 Qs

Démo 2: CSS

Démo 2: CSS

University

10 Qs

HTML CSS

HTML CSS

Assessment

Quiz

Computers

University

Hard

Created by

Ninitha C

Used 6+ times

FREE Resource

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; }

8.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which flexbox properties aligns items on the opposite axis as the flex-direction?
justify-content
align-items
align-content
justify-items

Answer explanation

Justify-content for main axis(hence flex direction), align items for cross axis(hence opp axis of flex-direction)