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 that 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 is used to place a header on your webpage. It can be used to indicate different sections.
Question 3

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

The title element is used to name the tab in a web browser.
Question 4

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

The body element is where you put the main content of a website.
Question 5

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

an inline element can be placed alongside another element, where a block element will take up the whole width of the webpage.
Question 6

What is a self-closing tag?

a self-closing tag is a tag that doesnt need another tag to close out.
Question 7

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

an attribute goes in the opening tag, for example, class="answer"
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!