
Last HTML and CSS Quiz
Authored by Muhammad Muhammad
Information Technology (IT)
6th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which HTML tag is used to define an internal style sheet?
<css>
<style>
<script>
<link>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct CSS property to make a text bold?
font-weight: bold;
text-style: bold;
font-bold: true;
bold: yes;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to apply a class in CSS?
#classname {}
.classname {}
classname {}
@classname {}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default position property of an HTML element?
relative
absolute
static
fixed
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In CSS, how do you select all <p> elements inside a <div>?
div p {}
div > p {}
div + p {}
div, p {}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which CSS property is used to control the space between elements' borders and their content?
margin
padding
spacing
border-spacing
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to include an external CSS file in an HTML document?
<link href="styles.css">
<style src="styles.css">
<css link="styles.css">
<link rel="stylesheet" href="styles.css">
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?