What is the purpose of HTML elements?

HTML and CSS Basics

Quiz
•
Computers
•
10th Grade
•
Hard
Shikshya Neupane
Used 1+ times
FREE Resource
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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