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 core of the context for a html document.
Question 2

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

the head element tells you the context and meta data or the html doc.
Question 3

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

to give the document a title.
Question 4

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

the body encloses the footer and the paragraphs.
Question 5

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

an inline element like these elements define text.
Question 6

What is a self-closing tag?

the b is a self closing tag because it is a void element
Question 7

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

the syntax for adding an attribute is Content
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!'