Font size
WorksheetsHTML and CSS Quiz
Total questions: 35
Worksheet time: 18mins
Which tag is used to define the largest heading in HTML?
<h1>
<head>
<title>
<h6>
Which attribute is used to provide an image source in HTML?
src
href
link
alt
The correct HTML element to insert a line break is:
<break>
<br>
<lb>
<newline>
Which tag is used to create a hyperlink?
<a>
<link>
<href>
<hyper>
Which HTML element is used to display an unordered list?
<ol>
<li>
<ul>
<list>
Which tag is used to insert an image in HTML?
<image>
<img>
<pic>
<src>
The correct way to make text bold in HTML is:
<b>
<bold>
<strong>
Both <b> and <strong>
Which tag is used to display a numbered list?
<nl>
<ul>
<ol>
<List>
Which attribute specifies an alternate text for images?
alt
title
text
label
HTML stands for:
Hyper Text Makeup Language
Hyper Transfer Markup Language
Hyper Text Markup Language
High Text Markup Language
Which tag is used to create a table row?
<row>
<th>
<td>
<tr>
The <title> tag is placed inside:
<body>
<head>
<h1>
<html>
Which tag is used for inserting a horizontal line?
<line>
<h1>
<br>
<hr>
Which tag is used to define a paragraph?
<para>
<paragraph>
<p>
<pg>
Which tag defines the document’s main content?
<body>
<main>
<content>
<section>
CSS stands for:
Computer Style Sheets
Cascading Style Sheets
Colorful Style Sheets
Creative Style Sheets
Which property changes text color?
bgcolor
color
text-color
fontcolor
Which property is used to change background color?
bgcolor
background-color
bg-color
color-bg
How do you select all
elements in CSS?
p { }
#p { }
.p { }
*p { }
Which property is used to change font size?
font-size
text-size
size
font
Which CSS property controls text alignment?
text-decoration
text-align
align
position
Which is the correct way to apply an external CSS file?
<link rel="stylesheet" href="style.css">
<css link="style.css">
<style src="style.css">
<stylesheet>style.css</stylesheet>
Which property adds space inside an element’s border?
margin
padding
border
spacing
Which property adds space outside an element’s border?
padding
margin
spacing
border
Which is the correct syntax for a CSS comment?
// comment
/* comment */
# comment
Which function is used to display output in Python?
echo()
display()
print()
output()
Which symbol is used for comments in Python?
//
#
%
What is the correct way to assign a variable?
int x = 10
x = 10
var x = 10
10 -> x
Which data type is used for text in Python?
int
str
float
char
What is the output of print(2**3)?
5
6
8
9
Which function is used to get user input?
scan()
input()
get()
read()
How do you write a list in Python?
{1,2,3}
(1,2,3)
[1,2,3]
Which operator is used for division in Python?
/
\
%
//
What is the output of print(10 % 3)?
0
1
2
3
Which of these is a Boolean value in Python?
Yes / No
True / False
0 / 1
Right / Wrong
