HTML Flashcards
What HTML tag is used to link to another website?
< a >
What is an absolute URL?
full web address of a website
What is a relative URL?
shorthand for linking other pages on the same site
What is the difference between an ordered list and an unordered list in HTML?
ordered list items are numbered; unordered list items are bulleted
Is an HTML list a block element or an inline element?
block element
How do block-level elements affect the document flow?
always start on a new line
How do inline elements affect the document flow?
can continue on the same line as neighboring elements
What are the default width and height of a block-level element?
default width is the width of the entire container; default height is the height of the content
What are the default width and height of an inline element?
default width is the width of the content; default height is the height of the content
Give five examples of HTML element tags.
< html > , < head > , < title > , < body > , < p > , < a > , < img > , < h1 > , < h2 > , < h3 > , < h4 > , < h5 > , < h6 > ,
What is the purpose of HTML attributes?
to provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
ampersand, quotation mark, right/left single quote, right/left double quotes, less-than sign, greater-than sign
Where do you put non-visible content about the HTML document?
< head > element
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?
within the < html > and < / html > tags
What is the purpose of a < !DOCTYPE > declaration?
tells the browser which version of HTML the page is using
How do you indicate the relative link to a parent directory?
../ followed by the file name
How do you indicate the relative link to a child directory?
name of the child directory followed by / followed by the file name
How do you indicate the relative link to a grand parent directory?
../../ followed by the file name
How do you indicate the relative link in the same directory?
just use the file name
What is the purpose of an HTML form element?
to collect information from visitors
Give five examples of form control elements.
text input, radio buttons, checkboxes, drop-down boxes, submit buttons, text area, password input
Give three examples of type attributes for HTML < input > elements.
text, radio, checkbox, submit, email, password
Is an HTML < input > element a block element or an inline element?
inline element
What are the six primary HTML elements for creating tables?
table, tbody, thead, tr, td, th
What purpose do the thead and tbody elements serve?
thead contains the headings of the table; tbody contains the body of the table
Give two examples of data that would lend itself well to being displayed in a table.
financial report, schedule