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