NEW
Font size
WorksheetsBasic HTML and CSS Quiz 1.0
Total questions: 35
Worksheet time: 18mins
What does HTML stand for?
Hypertext Markup Language
Hyperlink and Text Markup Language
Hypertext Markup Link
Hypertext Multi Language
Who wrote the first memo proposing an Internet-based hypertext system?
Tim Berners-Lee
Marc Andreessen
Paul Fodor
Vint Cerf
What is the purpose of the <head> tag in HTML?
What does CSS stand for?
What is the correct format of a hyperlink in HTML?
<link href="url">
<link src="url">
<a src="url">text </a>
<a href="url">text </a>
What does the img tag do in HTML?
Defines a table
Formats text
Creates a hyperlink
Displays an image
Which attribute is used to specify the action of a form in HTML?
type
submit
action
method
What is the purpose of CSS?
To style web pages
To structure web pages
To link web pages
To create web pages
Which of the following is a valid CSS selector?
#idName
h1, h2, p
.className
All of the above
What does the 'margin' property in CSS do?
Sets the height of an element
Adds space outside an element
Adds space inside an element
Sets the width of an element
Which of the following is NOT a valid HTML tag?
<nav>
<header>
<footer>
<sectioned>
What is the default value for the 'display' property in CSS?
inline
inline-block
block
none
Which CSS property is used to change the text color?
background-color
font-color
text-color
color
What is the purpose of the <title> tag in HTML?
To define the main heading of the page
To provide a title for the document
To include external scripts
To create a navigation menu
Which property is used to change the background color in CSS?
background-color
color
bgcolor
background
What does the 'float' property do in CSS?
Positions an element to the left or right
Sets the opacity of an element
Changes the font size of an element
Aligns text within an element
What is the purpose of the <meta> tag in HTML?
To define the character set of the document
To include external stylesheets
To create a footer for the webpage
To add JavaScript to the document
Which CSS property is used to control the spacing between lines of text?
line-height
spacing
text-spacing
letter-spacing
What does the 'z-index' property do in CSS?
Controls the stacking order of elements
Sets the opacity of an element
Defines the size of an element
Changes the position of an element
What is the purpose of the 'display' property in CSS?
To control the visibility of an element
To set the position of an element
To define how an element is displayed on the page
To change the size of an element
Which HTML tag is used to create an ordered list?
<ul>
<ol>
<list>
<li>
What does the 'padding' property do in CSS?
Adds space outside an element
Adds space inside an element
Sets the border of an element
Changes the background color of an element
What is the function of the 'border' property in CSS?
To create space around an element
To define the outline of an element
To set the color of an element
To add a shadow effect to an element
Which CSS property is used to control the font size of text?
font-size
text-size
size
font-style
What does the 'visibility' property do in CSS?
Hides an element but keeps its space
Removes an element from the document flow
Changes the opacity of an element
Controls the display of an element
Which of the following is a valid way to include a CSS file in HTML?
<style src="styles.css">
<link rel="stylesheet" href="styles.css">
<css src="styles.css">
<script src="styles.css">
Which CSS property is used to control the width of an element?
width
element-width
size
box-width
Who invented the World Wide Web?
Which organization is responsible for opening standards to ensure the long-term growth of the Web
PLDC
What web era are we currently in?
A unique address used to identify a website on the internet. It is part of the URL and is composed of several parts.
Domain
What is DNS?
What is TLD?
Define a URL
What does HTTPS mean?
