NEW
Font size
WorksheetsWeb Design & HTML/CSS Practice Quiz
Total questions: 20
Worksheet time: 10mins
What does HTML stand for?
HighText Machine Language
HyperText Markup Language
HyperTool Markup Language
Home Tool Markup Language
Which HTML tag defines the main body of the webpage?
<main>
<html>
<body>
<head>
Which element is used to create a hyperlink in HTML?
<img>
<link>
<a>
<href>
Which attribute is used with the tag to define the link's destination?
href
link
src
target
What HTML tag is used to insert an image?
<img>
<image>
<src>
<pic>
What attribute must be included in the tag to specify the image location?
link
src
alt
href
Which tag makes text bold in HTML?
<em>
<b>
<strong>
<i>
What tag should be used to create an unordered list?
<ul>
<ol>
<li>
<list>
In an HTML table, what tag is used to define a table row?
<tr>
<td>
<th>
<table>
What is the correct order for HTML document structure?
<head>, <html>, <body>
<html>, <body>, <head>
<html>, <head>, <body>
<body>, <head>, <html>
What is the purpose of the tag in HTML?
It sets the page heading.
It adds keywords for SEO.
It sets the page title in the browser tab.
It creates a clickable button.
What is CSS used for?
Structuring web content
Styling web pages
Creating animations
Managing databases
Which tag connects a CSS file to an HTML document?
<script>
<style>
<css>
<link>
What CSS selector targets all tags on a page?
.p
#p
p
*p
What is the correct way to apply a unique style using an ID in CSS?
.header { color: blue; }
#header { color: blue; }
header { color: blue; }
$header { color: blue; }
Which of the following is a valid CSS declaration?
color = red
color: red;
color red;
color:: red
What part of the HTML document does the browser not display?
<body>
<title>
<head>
<h1>
How do you write a comment in HTML?
<!-- This is a comment -->
// This is a comment
/* This is a comment */
## This is a comment
Which tag is used for the largest heading?
<head>
<h1>
<h6>
<header>
Why is CSS useful in web development?
It allows creating responsive layouts and consistent styling.
It helps structure the webpage.
It links pages together.
It writes backend code.
