LFZ HTML Quiz Flashcards
Where do you put non-visible content about the HTML document?
The head element
Where do you put visible content about the HTML document?
The body element
Where do the and tags go in a valid HTML document?
Inside the element, typically the element is on top of the element
What is the purpose of a declaration?
To tell the browser which version of html the document is using
Give five examples of HTML element tags.
p, div, head, html, body, h1
What is the purpose of HTML attributes?
To provide more information to an element
Give an example of an HTML entity (escape character).
<, &, ©
How do block-level elements affect the document flow?
Block-level elements take up the whole width of a line and prevent other elements from being apart of the line
How do inline elements affect the document flow?
Inline-elements only take up as much space as they require and can be put next to eachother
What is the default width and height of a block-level element?
The content will dictate the height and the width will take up the entire width of the parent
What is the default width and height of an inline element?
The content dictates the width and height
What is the difference between an ordered list and an unordered list in HTML?
Order lists use numbers/alphabet as bullet points, unordered lists use symbols as bullet points
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
The anchor element a
What is an absolute URL?
An absolute URL is a URL the specifies a webpage (ex: https://www.example.com)