HTML and CSS Basics

HTML and CSS Basics

10th Grade

37 Qs

quiz-placeholder

Similar activities

Easy LEVEL

Easy LEVEL

9th Grade - University

40 Qs

HTML/CSS Review

HTML/CSS Review

9th - 12th Grade

35 Qs

Se Liga - PC - 1º Ano - 3º Tri

Se Liga - PC - 1º Ano - 3º Tri

10th Grade

40 Qs

HTML5

HTML5

10th Grade

40 Qs

Web Development Code.org CS Discoveries

Web Development Code.org CS Discoveries

6th - 12th Grade

35 Qs

Unit 2

Unit 2

6th - 12th Grade

35 Qs

Web Technologies

Web Technologies

10th Grade

33 Qs

ProvaTeoricaCL3CSS

ProvaTeoricaCL3CSS

9th - 12th Grade

35 Qs

HTML and CSS Basics

HTML and CSS Basics

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Shikshya Neupane

Used 1+ times

FREE Resource

37 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of HTML elements?

The purpose of HTML elements is to generate revenue for website owners.

HTML elements are designed to play audio files directly in the browser.

HTML elements are used for creating animations on a web page.

The purpose of HTML elements is to define the structure and content of a web page.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between classes and IDs in CSS.

Classes can be used multiple times and are denoted by a period (.), while IDs should be unique and are denoted by a hash symbol (#).

Classes are denoted by a hash symbol (#) and IDs are denoted by a period (.)

Classes and IDs are interchangeable in CSS

IDs can be used multiple times and are denoted by a period (.), while classes should be unique and are denoted by a hash symbol (#)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the 'box model' in CSS?

The 'box model' in CSS refers to the way elements are structured with content, padding, border, and margin.

The 'box model' in CSS refers to the way elements are positioned

The 'box model' in CSS refers to the way elements are animated

The 'box model' in CSS refers to the way elements are colored

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you center an element horizontally in CSS?

justify-content: center;

padding: 0 auto;

margin: 0 auto;

text-align: center;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the 'display' property used for in CSS?

The 'display' property in CSS is used to set the background color of an HTML element.

The 'display' property in CSS is used to change the font size of an HTML element.

The 'display' property in CSS is used to specify the type of box used for an HTML element.

The 'display' property in CSS is used to add a border around an HTML element.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between 'inline' and 'block' elements in CSS.

Block elements: span, a, strong, em

Inline elements: ul, ol, li, table

Inline elements: h1, h2, h3, h4

Inline elements: span, a, strong, em, etc. Block elements: div, p, h1, form, etc.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'flex-direction' property in CSS Flexbox?

To define the direction in which flex items are placed in the flex container.

To control the font size of flex items

To set the background color of flex items

To add animations to flex items