html Flashcards
where do you put non-visible content about the html document?
within the head element.
where do you put the visible content about the html document?
within the body element.
where do the head and body tags go in a valid html document?
within the html element, with the head first and the body after.
what is the purpose of the declaration?
to tell the browser which version of html the page is using.
give 5 examples of html element tags.
img, p, div, span, h1.
what is the purpose of html attributes?
provide additional information about the contents of an element.
give an example of an html entity.
© for the copyright symbol.
how do block-level elements affect the document flow?
block elements always appear on a new line.
how do inline elements affect the document flow?
inline elements appear on the same line as their neighboring elements.
what are the default width and height of a block-level element?
block level elements take up the whole line.
what are the default width and height of an inline element?
inline elements only take up as much space as needed.
what is the difference between an ordered list and an unordered list in html?
ordered lists are numbered and unordered lists use bullet points.
is an html list a block element or an inline element?
lists are block elements.
what html tag is used to link to another website?
the a tag
what is an absolute url?
A url that links to a page outside of the current website
what is a relative url?
A url that links to a page within the current website
how do you indicate the relative link to a parent directory?
../
how to you indicate the relative link to a child
nameOfChildFolder/fileName
how do you indicate the relative link to a grand parent directory?
../../
how do you indicate the relative link to the same directory
just the file name or ./fileName
what is the purpose of an html form element?
to collect information from users
give 5 examples of form control elements
input, select, option, button, textarea
give 3 examples of type attributes for html input elements
password, email, submit
is an html input element a block element or an inline element
input is an inline element
what are the 6 primary html elements for creating tables?
table, tr, td, th, thead, tbody,
what purpose do the thead and tbody elements serve?
thead contains the head of the table and tbody contains the body of the table
give 2 examples of data that would lend itself well to being displayed in a table
schedules, financial data