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, which means that it contains all the other elements on the page.
Question 2
What is the purpose of the head element in an html document?
The head element is for the text and data that is part of the tab
Question 3
What is the purpose of the title element in an html document?
The title element is for the text that displays in the tab of the browser
Question 4
What is the purpose of the body element in an html document?
The body element is for all of the elements and such inside the page
Question 5
What is the difference between an inline element and a block element?
An inline element is an element on a web page that spans horizontally across the whole page. A block element takes up a chunk of the page
Question 6
What is a self-closing tag?
A self-closing tag is a tag that doesn't have an opening tag or closing tag, it's just one tag
Question 7
Explain the syntax for adding an attribute to an HTML element?
When adding an attribute to an HTML element, it can do multiple things depending on the element, but it usually changes the properties or adds propertise to the element
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!