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 contains all the other elements in the document. It is known as the root element.
Question 2

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

The head element conatins the information about the web page
Question 3

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

The title element displays the title of the web page on the browser tab. The title should be inside the head element.
Question 4

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

The body element is where we put all the visible content of the webpage.
Question 5

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

A block element with stretch to take up as much width as it can. An inline element will stretch out only enough to accomadate the content thats inside of it.
Question 6

What is a self-closing tag?

A self-closing tag is a single opening tag with no closing tag. It is a tag that can not contain anything, not context or elements.
Question 7

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

An attribute is a word that modifies an element, it is placed inside the opening tag of an element. An attribute is made up of a name and a value are separated by an equeal sign. For example: In an 'a' element the href inside the opening tag would be considered the attribute.
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!