- Try to compare the difference between the block element and the inline element.
block element: Starts on a new line, occupies full width; used for Structural layout (paragraphs,
sections);
Can contain both block and inline elements; Width and height can be set freely
inline element: Flows within a line, only takes needed space; used for Styling or linking small content;
Can only contain inline elements; Width and height cannot be set
- Try to compare <div> tag and <span> tag.
div is a block element defines a block container for layout, used for grouping sections;
span is an inline element defines a small inline container, used for styling inline text
- How many list types in HTML5? What are they?
3 types: ordered list, unordered list, description list
- Specify the basic tags in a table in HTML5.(at least 3)
table, tr, th, td, caption, thead, tbody, tfoot
- Specify the major semantic tags to create basic structure of document in HTML5.(at least 5)
header, nav, main, article, section, footer, aside