HTML Basics Worksheet

Answer the following questions by adding your answer to the DIV element below each question.

Question 1

What is the significance of the html element in an html document?

The HTML element is known as the root element, which means it contains all the other elements on the page.
Question 2

What is the purpose of the head element in an html document?

The "head" element contains metadata for the html file. Things like page title or author.
Question 3

What is the purpose of the title element in an html document?

The "title" element changes the text displayed in webpage tab above the address bar.
Question 4

What is the purpose of the body element in an html document?

The "body" element allows text to be displayed on parts of the webpage.
Question 5

What is the difference between an inline element and a block element?

A "block" element affects all the vertical space of a line in a webpage. An "inline" element only affects the content within the element tags.
Question 6

What is a self-closing tag?

Typically an element requires an opening tag and a closing tag to signify the content it affects. A self closing tag is an element that doesn't affect other content and can't have anything contained within it.
Question 7

Explain the syntax for adding an attribute to an HTML element?

An "attribute" provides additional information for things like photos and links, such as the name and alt-text.
Question 8

Add an H3 element that contains the content 'Hello World!'. Then add a class attribute to the H3 element and set the value of the attribute to "glow".

Hello, World!