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 sets up the code to work in the html programming language
Question 2

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

The head element holds the title element and meta elements
Question 3

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

The title element is for the name of the tab for the webpage
Question 4

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

The body element is for the items and code you see on the webpage
Question 5

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

An inline element only takes up the space it needs to on a webpage, while a block element takes up as much horizontal space as it can
Question 6

What is a self-closing tag?

It is a tag that does not hold information in it, and only has an opening tag, and no closing tag
Question 7

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

Put a space after the tag element, then enter the attribute you need
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!