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 the root element, which means that it contains all the other elements on the page
Question 2

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

It is served as a container for metadata.
Question 3

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

It is the title of the webpage tab so then you can identify what it is called.
Question 4

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

It is the main content for the HTML document.
Question 5

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

The inline takes up the spaces that it needs, while the block takes up all the space that it's on.
Question 6

What is a self-closing tag?

It is an element where it doesn't need a closing tag.
Question 7

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

It provides addtional information about the element.
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!