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)
What is a relative URL?
A relative URL is a short-hand absolute URL to an asset for a webpage (ex: photos/dog.png)
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
Use name of the directory
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
just use the name of the directory or ./
What is the purpose of an HTML form element?
To collect information from a user
Give five examples of form control elements.
text input, dropdown menus, radio buttons, checkbox, buttons
Give three examples of type attributes for HTML elements.
type radio, type checkbox, type submit
Is an HTML element a block element or an inline element?
inline-block
What are the six primary HTML elements for creating tables?
table, thead, tbody, tfoot, th, tr, td
What purpose do the thead and tbody elements serve?
To organize code and help people who use screen readers
Give two examples of data that would lend itself well to being displayed in a table.
Grades, game scores