Font size
WorksheetsHTML
Total questions: 15
Worksheet time: 6mins
True or False? All HTML documents must start with a document type declaration (for example, <!DOCTYPE html>).
True
False
True or False? The HTML document itself begins with <html> and ends with </html>.
True
False
The visible part of the HTML document is between:
<html> </html>
<head> </head>
<body> </body>
<h1> </h1>
HTML elements are represented using:
tabs
tags
attributes
headings
True or False? HTML elements can be nested (elements can contain elements).
True
False
How many HTML elements are in this example?
3
5
7
6
Which of these statements are true? (Choose up to four answers.)
All HTML elements can have attributes
Attributes provide additional information about an element
Attributes are always specified in the end tag
Attributes usually come in name/value pairs like: name="value"
Which is the proper way to write an h1 tag
<h1>Hello</h1>
<h1>"Hello
{h1}Hello{/h1}
<h1>Hello<h1>
<p> tag is for...
Page of Text
Picture
Paragraph of text
Pineapples
Which code below is correct for a hyperlink
<a>
"https://google.com"
Click Me
</a>
<a>Click Me>
"https://google.com"
</a>
<a herf="https://google.com">
Click Me
</a>
<a href="https://google.com">
Click Me
</a>
src attribute in an image tag means what?
Source of the image
Name of the image
Description of the image
Not used with image tag
Which of the following is the code for a paragraph to be blue?
<td style=“background-color:blue;”>
<h1 style=“font-size:60px;”>
<p style=“color:blue;”>
<tagname style=“property:value;”>
What is the font size in this code: <p style=“color:blue; background-color:yellow;
font-size:60px”>Hello</p>
20pixles
40pixels
50pixels
60pixels
Which of the following codes would create a horizontal line
<br>
<h1></h1>
<hr>
<p>
