
HTML and CSS Mock Quiz
Authored by REBEKAH PRESORES
Other
11th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the action attribute in a <form> element?
<form action="https://www.google.com" method="get">
It specifies how the form data should be submitted.
It defines the URL where the form data will be sent upon submission.
It sets the method of submitting form data (GET or POST).
It validates user input before submitting the form.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What should I put in css to make these three containers aligned in 1 row?
display:flex;
text-align:center
justify-content: space-around;
rowspan="3"
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the contact form, what is the function of the required attribute in <input> and <textarea>?
It limits the input length
It ensures that the user cannot leave the field empty before submitting
It makes the form submit automatically
It prevents the user from typing
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Which CSS property should be used to achieve a round edge for sections?
____________: 10px;
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What should you put in the blank of you want to put the following css properties to your class named mystyles?
___________ {
background: #0073e6;
color: #222;
padding: 10px 15px;
border-radius: 5px;
font-weight: bold;
}
mystyles.css
.mystyles
style.css
styles.css
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Below is a code snippet to create a number input field with intervals of 5.
<div class="form-group">
<label for="number">Choose a Number:</label>
<input type="number" id="number" name="number" _______>
</div>
What should be in the missing blank to achieve this?
interval="5"
step="5"
increment="5"
range="5"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the section in the HTML file?
To include external JavaScript
To add CSS styling directly within the HTML file
To structure the content of the webpage
To declare JavaScript functions
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?