NEW
Font size
WorksheetsHTML CSS
Total questions: 20
Worksheet time: 10mins
What does HTML stand for?
Hyper Transfer Markup Language
Hyper Text Markup Language
High Text Machine Language
Hyperlink and Text Management Language
Which HTML tag is used to define a hyperlink?
<link>
<a>
<href>
<hyper>
What is the correct way to make a text bold in HTML?
<b>Bold</b>
<strong>Bold</strong>
<bold>Bold</bold>
Both A and B
Which tag is used for creating an unordered list?
<ul>
<ol>
<li>
<list>
What is the correct HTML for inserting an image?
<img src="image.jpg">
<image src="image.jpg">
<img href="image.jpg">
<picture src="image.jpg">
Which HTML tag is used for the largest heading?
<h6>
<h1>
<head>
<heading>
How do you create a line break in HTML?
<break>
<lb>
<br>
<hr>
Which HTML tag is used to define a table?
<table>
<tab>
<tbl>
<tr>
Which tag is used to define a drop-down selection list?
<dropdown>
<select>
<list>
<option>
Which HTML element is used for the main content of a webpage?
<body>
<section>
<content>
<main>
Which HTML tag is used to create a numbered list?
<ul>
<list>
<ol>
<li>
Which attribute is used to provide alternative text for an image in HTML?
title
alt
src
description
What does CSS stand for?
Computer Style Sheets
Creative Style System
Cascading Style Sheets
Colorful Style Sheets
Which CSS property controls the text size?
text-style
font-size
text-size
font-weight
How can you apply a background color in CSS?
color: blue
background-color: blue
bg-color: blue
background:color blue
Which is the correct way to add an external CSS file?
<link rel="stylesheet" href="styles.css">
<style src="styles.css">
<css link="styles.css">
<script href="styles.css">
What is the default position value in CSS?
absolute
relative
static
fixed
Which property is used to create space inside an element’s border?
margin
padding
border
spacing
How do you make a flex container in CSS?
display: grid
display: flex
flexbox: true
container: flex
How do you apply a hover effect in CSS?
a.hover { color: red; }
a:hover { color: red; }
hover a { color: red; }
a onhover { color: red; }
