HTML CSS

HTML CSS

University

8 Qs

quiz-placeholder

Similar activities

¿Qué es Web y cómo funciona? 🌐✨

¿Qué es Web y cómo funciona? 🌐✨

University

10 Qs

Cuestionario de HTML, CSS y JavaScript

Cuestionario de HTML, CSS y JavaScript

University

10 Qs

Software Development Quiz

Software Development Quiz

6th Grade - Professional Development

10 Qs

CSS Basics

CSS Basics

University

11 Qs

CSS QUIZ 01

CSS QUIZ 01

University

7 Qs

HTML Basics Quiz

HTML Basics Quiz

9th Grade - University

11 Qs

Implementando CSS

Implementando 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)