WorksheetsHTML & CSS Basics
Total questions: 21
Worksheet time: 11mins
What does HTML stand for?
Hyper Transfer Markup Language
Hyper Text Markup Language
High Tech Markup Language
Hyperlink and Text Management Language
Which HTML tag is used to define a paragraph?
<para>
<paragraph>
<pg>
<p>
Which HTML tag is used for inserting an image?
<img>
<image>
<picture>
<photo>
How do you create a hyperlink in HTML?
<a href="https://example.com">Click Here</a>
<link src="https://example.com">Click Here</link>
<href url="https://example.com">Click Here</href>
<hyperlink="https://example.com">Click Here</hyperlink>
Which tag is used to create a table in HTML?
<tab>
<table>
<tr>
<td>
What is the correct way to add a background color in HTML?
<body background="blue">
<body bgColor="blue">
<body style="background-color: blue;">
<background> blue</background>
Which tag is used to create a line break in HTML?
<lb>
<break>
<newline>
<br>
What is the correct way to create an ordered list?
<ul>
<li>
Item
</li>
</ul>
<ol>
<li>
Item
</li>
</ol>
<list>
<li>
Item
</li>
</list>
<order>
<li>
Item
</li>
</order>
Which tag is used to define a heading in HTML?
<head>
<h>
<heading>
<h1> to <h6>
Which attribute is used to open a link in a new tab?
target="_self"
target="_blank"
newtab="true"
open="new"
What is the correct way to add a comment in HTML?
// This is a comment
/* This is a comment */
<!-- This is a comment -->
# This is a comment
What does CSS stand for?
Computer Style Sheets
Creative Style System
Cascading Style Sheets
Colorful Style Sheets
Where in an HTML document is the correct place to refer to an external CSS file?
In the <head> section
In the <body> section
At the end of the document
Inside the <footer>
How do you apply a CSS rule to all <p> elements?
#p { color: blue; }
.p { color: blue; }
p.all { color: blue; }
p { color: blue; }
Which HTML tag is used to define a table row?
<table>
<tr>
<td>
<tab>
Which HTML tag is used for the largest heading?
<h1>
<h6>
<header>
<h7>
How do you add an external CSS file to an HTML page?
<style src="styles.css">
<css href="styles.css">
<link rel="stylesheet" href="styles.css">
<stylesheet>styles.css</stylesheet>
Which HTML tag is used to define an unordered list?
<ul>
<ol>
<list>
<li>
What type of element is the <div> tag in HTML?
Inline
Block
Inline-block
None of the above
What is the default display property of a <span> element?
Block
Inline
Inline-block
None
Which of the following elements are block-level elements by default?
<div>
<p>
<h1>
All of the above
