HTML & CSS Flashcards
Where do you put non-visible content about the HTML document?
head tag
Where do you put visible content about the HTML document?
body tag
Where do the «a>head</a>> and «a>body</a>> tags go in a valid HTML document?
html tag
What is the purpose of a «a>!DOCTYPE</a>> declaration?
To let the browser know which version of HTML we’re using
Give five examples of HTML element tags.
a, p, div, body, img
What is the purpose of HTML attributes?
provides the element with additional information
Give an example of an HTML entity (escape character).
& amp; (without the space)
How do block-level elements affect the document flow?
takes up the entire width and moves to a new line
How do inline elements affect the document flow?
doesn’t affect document flow. span elements will stay on the same line
What are the default width and height of a block-level element?
width is 100% of the available space and height is auto
What are the default width and height of an inline element?
width and height are both auto
What is the difference between an ordered list and an unordered list in HTML?
ordered - structured and numbered
unordered - no structure and no numbers. bullet points
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?
«a>a</a>>
What is an absolute URL?
url to external page
What is a relative URL?
url to something on the same page
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
name of the child folder, followed by a forward slash, then the file name
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 file name
What is the purpose of an HTML form element?
To receive input from a user and make a webpage interactive. also the form element itself hold and contains all the form control elements
Give five examples of form control elements.
input, textarea, select, option, button
Give three examples of type attributes for HTML «a>input</a>> elements.
radio, checkbox, submit
Is an HTML «a>input</a>> element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
table, tr, td, thead, tbody, tfoot