
HTML and CSS Quiz
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Hard
Viswathika K
Used 2+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of charset attribute? It specifies
a scheme to be used to interpret the value of the content attribute
a name for the metadata
the character encoding for the HTML document
the character decoding for the HTML document
Answer explanation
The charset attribute in HTML is used to specify the character encoding of the HTML document. Character encoding determines how characters are represented in bytes, which is essential for displaying text correctly, especially when the page includes special characters, symbols, or non-English alphabets.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable is used to collect form data sent with both the GET and POST methods?
$BOTH
$_BOTH
$REQUEST
$_REQUEST
Answer explanation
In PHP, the $_REQUEST superglobal variable is used to collect form data sent with both GET and POST methods, as well as data from cookies. It is an associative array that automatically retrieves input from $_GET, $_POST, and $_COOKIE.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For grouping together one or more
<h1> to <h6>
element what element is used?
<header>
<hgroup>
<div>
<section>
Answer explanation
The <hgroup> element in HTML is used to group a set of <h1> to <h6> headings when they form a single composite heading. This is helpful when you have a main heading with one or more subheadings and want to treat them as a unified block for semantic purposes.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Footer element can't contain ____________ information.
contact information
copyright information
the author of the document
blog post
Answer explanation
: A footer for a document or section is specified by <footer> element. It should contain information about its containing element. This element typically contains the author of the document, links to terms of use, copyright information, contact information.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not an appropriate value for border-collapse?
all
collapse
inherit
separate
Answer explanation
The border-collapse property in CSS is used with HTML tables to control whether table borders are separated or collapsed into a single border.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the specificity of this "li".
specificity = 0,0,0,1
specificity = 0,0,1,1
specificity = 0,1,1,1
specificity = 1,1,1,1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of below mentioned code snippet?
p strong {background-color: yellow;}
Strong have yellow background
Strong element within a p element have a yellow background
Both p and strong have yellow background
None of the mentioned
Answer explanation
All <strong> elements inside <p> (paragraph) elements will have a yellow background color. The CSS selector p strong is a descendant selector. It targets all <strong> tags that are nested anywhere inside a <p> tag.
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?
Similar Resources on Wayground
25 questions
EFFICIENT CALENDAR MANAGEMENT
Quiz
•
Professional Development
25 questions
BUSINESS SERVICES
Quiz
•
11th Grade - Professi...
25 questions
IoT Introduction
Quiz
•
Professional Development
25 questions
CHAPTER 3 - Sensor
Quiz
•
Professional Development
25 questions
Seberapa Inventory Kah Aku
Quiz
•
Professional Development
25 questions
Budaya HSSE (25 Q - 750s) - AST MAN
Quiz
•
Professional Development
25 questions
Logo Quiz
Quiz
•
KG - Professional Dev...
25 questions
BT - Business Organization Structure
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
