HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element
Where do you put visible content about the HTML document?
In the body element
Where do the <head> and <body> tags go in a valid HTML document?
In the HTML element
What is the purpose of a !DOCTYPE declaration?
It tells what version of HTML is being used
Give 5 examples of HTML element types.
Head, Body, P, IMG, HTML
What is the purpose of HTML attributes?
They are used to change HTML elements.
Give an example of an HTML entity (escape character)
& ampersand, © copyright, ® register symbol
How do block-level elements affect the document flow?
Block level elements are stacked on top of another
How do inline elements affect the document flow?
They occur within lines and do not stack on top of one another
What are default width and height of a block-level element?
Height: Auto and Width: 100% or width of the whole page
What are the default width and height of an inline element?
The height is the height of the content and same for the width in other words both values are auto
What is the difference between an ordered list and unordered list in HTML?
Ordered Lists are numbered while Unordered Lists are separated by bulletpoints
Is an HTML list a block element or an inline element?
Block element
How do you indicate the relative link to a parent directory?
You would put ../ and then the directory
How do you indicate the relative link to a child directory?
You would just link the directory and then the file