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?
It signifies that the document in html and everything else needs to be withing the html tags
Question 2
What is the purpose of the head element in an html document?
This is where you put the information for the document like the title or other meta data so it doesnt show in the page itself
Question 3
What is the purpose of the title element in an html document?
The title element is used to named the page in the browers tab
Question 4
What is the purpose of the body element in an html document?
the body tage is where you put the main part of your web page with everything you want on the page
Question 5
What is the difference between an inline element and a block element?
inline only takes the space it needs while blocks take the full size of the page and each new item is on a new line
Question 6
What is a self-closing tag?
A self closing tag is a tag that does not need a closing tag and is closed in the opening tag with a slash
Question 7
Explain the syntax for adding an attribute to an HTML element?
the syntax for adding an attribute is to add the name of the attribute followed by an equals sign and then the value of the attribute in quotes
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!