HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content goes in the <b>head</b> element.
Where do you put visible content about the HTML document?
Visible content goes inside the <b>body</b> element.
Where do the <b>head</b> and <b>body</b> tags go in a valid HTML document?
The <b>head</b> and <b>body</b> tags go inside the html tags.
What is the purpose of the !Doctype declaration?
It tells the browser what version of HTML to use.
What are some examples of HTML element tags?
HTML Head Body a title img p
What is the purpose of HTML attributes?
They provide more information about the contents of the element.
Give an example of an HTML entity.
©
®
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is used because the list needs to be in a specific order. For example, directions for cooking.
An unordered list does not need to be in a specific order. For example, a grocery list.
What three HTML elements do you use to build a description list?
dl to assign the definition list.
dt to define the definition term.
dd to assign the definition.
How do block-level elements affect the document flow?
Block-level elements take up 100% of the width of the page and always start on a new line.
How do inline elements affect the document flow?
Inline elements only take up as much space as they need.
What are the default width and height of a block-level element?
Width = 100% Height = However much space to contain the element.
What are the default width and height of an inline element?
Height and Width of an inline element are determined by the size of the element.
What accessibility considerations must be considered when choosing HTML elements?
How it will affect the screen reader and search engines.
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. Example: ../folder/file name