HTML Flashcards
Where do you put non-visible content about the HTML document?
Inside the head element.
The content is known as metadata.
Where do you put visible content about the HTML element?
Inside the body element.
Where do the head and body tags go in a valid HTML document?
They are located inside of the html element.
What is the purpose of a !Doctype declaration?
This tells the browser what version of HTML to parse through
Give five examples of HTML element types.
- Head
- Body
- Div
- P
- html
What is the purpose of HTML attributes?
To give additional information about the HTML element.
Give an example of an HTML entity (escape character).
®
always starts with &(ampersand) and ends with ;
How do block-level elements affect the document flow?
They take up the full width available, will always start force a new line, will stack on top of each-other.
How do inline elements affect the document flow?
Inline elements display in same line, don’t force a new line after them, only take up as much width as they need.
What are the default width and height of a block-level element?
The default width is the entire width of the parent element or of the page.
The default height is auto.
What are the default width and height of an inline element?
The default width is auto.
The default height is auto.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered 1,2,3,4 etc
Unordered lists are bullet points
Is an HTML list a block element or an inline element?
HTML List element is a block element
What HTML tag is used to link to another website?
The anchor tag
What is an absolute URL?
An absolute url is one with an https start
What is a relative URL?
A relative URL is a file path
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder above the current one, then follow it with the file name