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, it contains all elemnts on the page
Question 2

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

Contains meta information about the document, also provides info on document title character set, styles, and links
Question 3

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

Its the name of the website at the top of your screen, acts like the name in the title bar
Question 4

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

Like the main body of a paper, It's were all main content will end up.
Question 5

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

With web deveolper opened, you can see that block elemnts take up the whol space, while inline elements take up whats only needed.
Question 6

What is a self-closing tag?

Best way I can discribe it, It acts like a void element. anything placed inside will not be shown on the web pages, helps keep the code clean.
Question 7

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

Atributes can be used to spice up your doc, maybe you need to bold a word. You would use an atribute
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