HTML & CSS Flashcards
(61 cards)
Where do you put non-visible content about the HTML document?
In the head element
Where do you put visible content about the HTML document?
In the Body element
Where do the and tags go in a valid HTML document?
Inside the element
What is the purpose of a declaration?
to tell the browser what version of HTML you are using
Give five examples of HTML element types.
head, body, ol, ul, div, p, img
What is the purpose of HTML attributes?
provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
copywrite: © or ©
How do block-level elements affect the document flow?
They separate items inside them from other elements on the page into their own lines
How do inline elements affect the document flow?
they can be used to assign an element to something sharing space(or lines) with other code or text
What are the default width and height of a block-level element?
100 by default
What are the default width and height of an inline element?
Only as much room as the enclosed content needs
What is the difference between an ordered list and an unordered list in HTML?
ordered list uses numbers and unordered list uses dots(by default)
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?
anchor element or a
What is an absolute URL
A link to a location outside of your server or website
What is a relative URL?
a link to another location within your own website
How do you indicate the relative link to a parent directory?
../filename
How do you indicate the relative link to a child directory?
name of the directory with a forward slash(/) then the file name (directory/filename)
How do you indicate the relative link to a grand parent directory?
repeat the dot dot slash method (../../)
How do you indicate the relative link to the same directory?
just the filename
What is the purpose of an HTML form element?
to be a boundary for form control elements
Give five examples of form control elements.
option, textarea, input, select, button
Give three examples of type attribute values for HTML elements
checkbox, text, radio, submit
Is an HTML element a block element or an inline element?
inline