HTML Flashcards
Where do you put non-visible content about the HTML document?
Head element (metadata)
Where do you put visible content about the HTML document?
Body element
Where do the head and body tags go in a valid HTML document?
html element
what is the purpose of a !DOCUMENT declaration?
tell a browser which version of HTML the page is using
give five examples of HTML element tags
h1, p, a, img, span,
what is the purpose of HTML attributes
attributes provide additional information about the contents of an element
give an example of an HTML entity (escape character)
copyright symbol - ©
how do block-level elements affect the document flow?
block-level elements will always appear to start on a new line
how do inline elements affect the document flow?
elements will always appear to continue on the same line as neighboring elements
what are the default width and height of a block-level element?
occupies any available width. 100% width, height auto
what are the default width and height of an inline element?
occupies as much space as necessary. width auto, height auto
what is the difference between an ordered list and an unordered list in HTML?
ordered lists have a identifiable sequence. unordered lists do not (bullet points)
is an HTML list a block element or an inline element?
block element
what HTML tag is used to link to another website?
<a></a>, anchor tag
what is an absolute URL?
the full web address for the site
what is a relative URL?
assumes that the link you add is in the same folder. It is just the name of the file
how do you indicate the relative link to a parent directory?
../
how do you indicate the relative link to a child directory?
use name of child folder, followed by forward slash, then 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?
allows you to collect data from users
give five examples of form control elements
text input, text area, radio buttons, checkboxes, submit buttons
give three examples of type attributes for HTML < input > elements
text, radio, checkbox
is an HTML < input > element a block element or an inline element?
inline
what are the six primary HTML elements for creating tables?
thead, tbody, tr, th, td, table
what purpose do the thead and tbody elements serve?
helps distinguish between main content of the table
give two examples of data that would lend itself well to being displayed in a table
financial reports, TV schedules