HTML Flashcards
Where do you put non-visible content about the HTML document?
Head tag
Where do you put visible content about the HTML document?
Body element
Where do the <head> and <body> tags go in a valid HTML document?
Inside HTML element
What is the purpose of a <!DOCTYPE> declaration?
To tell a browser which version of HTML the page is using
Give five examples of HTML element types.
<html>,<head>,<body>,<img></img>,<title>
</title></body></head></html>
What is the purpose of HTML attributes?
Provide additional information about elements
Give an example of an HTML entity (escape character)
Ampersand
&
How do block-level elements affect the document flow?
Take all of the horizontal space
How do inline elements affect the document flow?
They continue on the same line as their neighbouring elements
What are the default width and height of a block-level element?
The block-level element takes up the entire horizontal space of its parent element, and its height will be dictated by the height of the content
What are the default width and height of an inline element?
The height and width are determined by the content
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists: each item in the list is numbered
Unordered lists: each item begins with a bullet point
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
Anchor tag <a></a>
What is an absolute URL?
A full web address.