HTML 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 and tags go in a valid HTML document?
within html tags head then body
What is the purpose of a declaration?
tells the browser what version of html or the document type
Give five examples of HTML element types.
Image, paragraph, list, heading, article
What is the purpose of HTML attributes?
provide additional information about the element — configure/adjust the elements behavior/functionality
Give an example of an HTML entity (escape character).
© = copyright
How do block-level elements affect the document flow?
always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can)
How do inline elements affect the document flow?
Inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content. No new line, other elements can be on the same line
What are the default width and height of a block-level element?
- Block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents, thereby creating a “block”.
- width: 100% and height: auto(content height)
What are the default width and height of an inline element?
An inline element does not start on a new line and only takes up as much width as necessary.
What is the difference between an ordered list and an unordered list in HTML?
- <ul> element is for grouping a collection of items that do not have a numerical ordering, and their order in the list is meaningless (bullets)
</ul>- </ul><ol> element the order is meaningful (numbers or letter)</ol>
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?
<a> tag</a>
What is an absolute URL?
Outside website