html Flashcards
Where do you put non-visible content about the HTML document?
in t he head element
Where do you put visible content about the HTML document?
in the body element
Where do the head and body tags go in a valid HTML document?
in the html element
What is the purpose of a doctype declaration?
To denote what kind of document, or tech standard is being used in the content of the page.
Give five examples of HTML element tags.
a element p element img element div element span element etc.
What is the purpose of HTML attributes?
To modify the properties of elements.
Give an example of an HTML entity (escape character).
® & © ¢ £ € etc.
How do block-level elements affect the document flow?
They take up the whole width of the parent element (width set to 100%) and as much as height as they need. (height set to auto)
What are the default width and height of a block-level element?
width 100% height auto
What are the default width and height of an inline element?
width auto height auto
What is the difference between an ordered list and an unordered list in HTML?
An ordered list denotes a list with a sequence e.g. a recipe, an unordered list denotes a list without a sequence, e.g. a shopping list.
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?
a (anchor) tag
What is an absolute URL?
an absolute url is a url that points to an external web page i.e. https://google.com/
What is a relative URL?
A relative url is a url that points to an internal resource, i.e. “../documents/taxes.html`
How do you indicate the relative link to a parent directory?
dot dot
How do you indicate the relative link to a child directory?
/
How do you indicate the relative link to a grand parent directory?
../../
How do you indicate the relative link to the same directory?
./ or just the directory name
What is the purpose of an HTML form element?
The purpose of the form element is to group input elements together into one chunk (form) to be processed.
Give five examples of form control elements.
button textarea fieldset input secret
Give three examples of type attributes for HTML input elements
type checkbox, radio
Is an HTML input element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
table td thead tbody tr tfoot