Available Questions About HTML & CSS Quizzes
1. Which HTML tag is used to define the structure of a webpage?
<section>
<div>
<body>
<header>
2. How do you select an element with the class header in CSS?
.header
#header
header
*header*
3. What property is used to change the background color of an element in CSS?
color
background-color
bg-color
background
4. What is the correct HTML element to define important text?
<italic>
<em>
<b>
<strong>
5. How can you create a hyperlink in HTML?
<a href="URL">link text</a>
<link href="URL">link text</link>
<hyperlink href="URL">link text</hyperlink>
<url href="URL">link text</url>
6. Which attribute is used to specify the source of an image in HTML?
image-source
alt
src
href
7. How do you make text bold in CSS?
font-size: bold;
text-transform: bold;
font-style: bold;
font-weight: bold;
8. Which CSS property is used to control the layout of a grid container?
display: block;
display: grid;
display: flex;
layout: grid;
9. How can you add a border to an HTML element in CSS?
border: 1px solid black;
border-color: black;
border-width: 1px;
border-style: solid;
10. What is the purpose of the alt attribute in an <img> tag?
To define the image format
To specify the image height
To provide a textual description of the image
To specify the image width
11. Which sentence uses the correct form of the modal verb for advice?
You should see a doctor if you're feeling unwell.
You should sees a doctor if you're feeling unwell.
You should seen a doctor if you're feeling unwell.
You should seeing a doctor if you're feeling unwell.