NEW
Font size
WorksheetsHTML and CSS Quiz
Total questions: 25
Worksheet time: 13mins
What does HTML stand for?
Hyperlinks and Text Markup Language
Hyper Text Markup Language
Home Tool Markup Language
Hyper Text Main Link
Which HTML tag is used to create a paragraph?
<h1>
<p>
<br>
<b>
What tag is used for the largest heading?
<h6>
<h3>
<h1>
<head>
Which tag creates a hyperlink?
<a>
<link>
<href>
<url>
What tag displays an image on a webpage?
<image>
<img>
<pic>
<photo>
Which attribute is used to specify the image file?
href
src
link
alt
What tag adds a line break?
<break>
<lb>
<br>
<p>
Which HTML tag is used to make text bold?
<i>
<b>
<u>
<strong>
The <head> section usually contains:
Text and images
CSS and page title
Main content
Lists only
What does CSS stand for?
Creative Style Sheets
Cascading Style Sheets
Computer Style System
Colorful Style Syntax
Which tag is used to connect CSS to HTML?
<css>
<style>
<link>
<connect>
What CSS property changes the background color?
text-color
background
background-color
color
To change the font size of text, which CSS property is used?
text-size
font-style
font-size
size
Which CSS property changes the text color?
color
background-color
font-color
text-color
To change the font type, use:
font-family
text-font
font-style
font-type
How do you write a comment in CSS so the computer ignores it?
// comment
/* comment */
<!-- comment -->
# comment
The correct CSS syntax to change background to blue is:
background: blue;
background-color: blue;
color: blue;
bg: blue;
What is a CSS animation used for?
Changing font color only
Moving or changing styles smoothly
Adding images
Writing code comments
Which CSS property controls the animation duration?
animation-speed
animation-time
animation-duration
animation-delay
Which rule defines the animation steps?
@keyframes
@frames
animation-step
animate
What does a CSS transition do?
Instantly change style
Gradually change style
Stop animation
Change font
To make a smooth hover effect, use:
transition
background
hover-speed
timing
:hover is used when:
The user scrolls
The user clicks
The mouse moves over an element
The page loads
Which CSS property adds delay before animation starts?
animation-delay
transition-delay
animation-start
wait-time
Which attribute in the <a> tag specifies the link destination?
link
src
href
target
