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 of the HTML document. It defines the start and end of the HTML code.
Question 2
What is the purpose of the head element in an html document?
The purpose of the head element is that it contains information about the webpage that isnt directly displayed.
Question 3
What is the purpose of the title element in an html document?
The purpose of the title element defines the title of the webpage.
Question 4
What is the purpose of the body element in an html document?
The body element holds the main content and everything that is visible to the users when they visit the webpage.
Question 5
What is the difference between an inline element and a block element?
The difference between the both of them is how they are displayed and use space on the webpage. Block elements take up the full width from left to right and create blocks. Stacking would be another term for block elements. Inline elements don't start a new line and only take up the space they need.
Question 6
What is a self-closing tag?
Self-closing tags are tags that does not have a closing tag because they don't contain anything inside of it.
Question 7
Explain the syntax for adding an attribute to an HTML element?
It is to add attribues and it helps define an element's value.
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!