HTML Block & Inline, HTML Lists Flashcards
How do block-level elements affect the document flow?
Will always appear to start on a new line. Will take take the full width of the line.
How do inline elements affect the document flow?
Will always continue on the on the same line as its neighboring elements. Only takes up as much space as needed.
What are the default width and height of a block-level element?
Default width: full width of line (100%)
Default height: dependent on the element; however many lines the block-level element will occupy
What are the default width and height of an inline element?
Default width: width is bounded by the tags of the inline element
Default height: height of the line of the inline element
What is the difference between an ordered list and an unordered list in HTML?
Ordered list has order; uses the tag < ol >
Unordered list does not have order; uses the tag < ul >
Is an HTML list a block element or an inline element?
Block element (starts on a new line each time)