NEW
Font size
WorksheetsHTML and CSS Basics
Total questions: 17
Worksheet time: 9mins
What does HTML stand for?
HyperText Markup Protocol
HyperText Markup Language
Hyperlink Text Markup Language
HighText Markup Language
What does CSS stand for?
Cascading Syntax Sheets
Creative Style Sheets
Cascading Style Scripts
Cascading Style Sheets
How do you add a background color in CSS?
Use the CSS property 'color: background;'.
Set the background color with 'bg-color: blue;'.
Apply 'background: color;'.
Use the CSS property 'background-color: color;'. For example, 'background-color: red;'.
Which CSS property is used to change the text color?
font-size
background-color
color
text-align
What is the purpose of the 'float' property in CSS?
To set the display type of an element.
To create a fixed position for an element.
To change the opacity of an element.
To align elements horizontally or vertically.
Which HTML tag is used to define an internal style sheet?
<script>
<css>
<style>
<link>
What does the 'z-index' property in CSS control?
The stacking order of elements.
The size of an element.
The visibility of an element.
The margin space around an element.
Which CSS property is used to control the spacing between lines of text?
line-height
letter-spacing
text-indent
margin
What is the function of the 'display' property in CSS?
To set the visibility of an element.
To define how an element is displayed on the page.
To adjust the size of an element.
To change the font style of an element.
Which HTML element is used to create a hyperlink?
<link>
<a>
<url>
<href>
What is the purpose of the 'margin' property in CSS?
To set the font size of an element.
To create space around elements.
To control the background image of an element.
To define the border of an element.
Which HTML element is used to define a table?
<tr>
<tbody>
<tab>
<table>
What does the 'opacity' property in CSS control?
The transparency level of an element.
The position of an element.
The color of an element.
The size of an element.
Which HTML element is used to create a list?
<list>
<ol>
<ul>
<li>
What is the purpose of the 'padding' property in CSS?
To control the background color of an element.
To create space inside an element's border.
To set the font style of an element.
To define the border of an element.
Which HTML tag is used to define an image?
<picture>
<src>
<img>
<image>
Which HTML element is used to create a form?
<form>
<fieldset>
<input>
<submit>
