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 of the other elements on the page.
Question 2

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

Provides context and helps organize, find, and understand the data.
Question 3

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

The purpose is to set the name of the webpage, which appears on the browser tab, It helps users recognize the page.
Question 4

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

The purpose is to hold all the content that people see on the webpage, like text, images, and links.
Question 5

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

Inline Element: Only use as much space as needed and stay in the same line.
Block Element: Take up the full width and start on a new line.
Question 6

What is a self-closing tag?

Self-Closing Tag is an HTML tag that doesn't need a separate closing tag. It ends with a slash (/) before the closing bracket (>).
Question 7

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

To add an attribute to an HTML element, you write the attribute name followed by an equal sign (=). and then the value of the attribute inside 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!