Extra Markup Flashcards
what is the ID attribute?
the ID attribute is a way to specifically identify a HTML element. one ID can be given to one element
what is the class attribute?
the class attribute is a way to identify multiple HTML elements with the same class name. one class can be given to multiple elements
what is a block-level element?
a block-level element is an element that is displayed in a block format
give examples of block-level elements (min 3)
div, h1-h6, p, section
what is an inline element?
an inline element is an element that is displayed inline
give examples of inline elements (min 3)
a, b, em, img
what is a div element?
a div element is a generic container
what is the div element used for?
a div element is used to group other elements of similarity together