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, containing every other element used by the webpage.
Question 2
What is the purpose of the head element in an html document?
The head element contains metadata. Metadata is the information that you won't see on the webpage itself,
but is still very important to have.
Question 3
What is the purpose of the title element in an html document?
The title element determines what name the HTML file will use in the browser's tab.
Question 4
What is the purpose of the body element in an html document?
The body element contains the information used for the webpage itself. It is the portion that you can see,
and it also has data for how it is decorated.
Question 5
What is the difference between an inline element and a block element?
A block element takes up an entire horizontal row, whereas an inline element only takes up enough space to contain the text inside.
As a result, inline elements are usually contained inside of block elements.
Question 6
What is a self-closing tag?
A self-closing tag does not need an ending to signify where it's located. Because of that, unlike most HTML tags,
instances of a self-closing tag will only appear once.
Question 7
Explain the syntax for adding an attribute to an HTML element?
Attributes must be contained within an element's starting tag. It will start with a classifier, followed by an equation sign,
then followed by a value in quotation marks.
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!