Block-level elements, simply speaking, are the elements of a single line of their own. Its characteristics:
① always starts on a new line, ② height, row height, and margin and padding are controllable; the ③ width defaults to 100% of its container unless a width is set. ④ it can accommodate inline elements and other block element summary code as follows:
1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <MetaCharSet= "UTF-8">5 <title>Document</title>6 </Head>7 <Body>8 <!--block element exclusive row -9 Ten <!--Div has no semantics, call it a box - One <Div>Box</Div> A - <!--h1-h6 Semantic definition title - - <H1>Title 1</H1> the <H2>Title 2</H2> - <h6>Title 3</h6> - - <!--P Semantic Paragraph label write text - + <P>Article</P> - + <!--lists are mostly used to store a series of similar data - A <!--list with sequence - at <ol> - <Li>Navigation 1</Li> - <Li>Navigation 2</Li> - <Li>Navigation 3</Li> - </ol> - <!--unordered list - in <ul> - <Li>Navigation 1</Li> to <Li>Navigation 2</Li> + <Li>Navigation 3</Li> - </ul> the <!--define a list to interpret a noun - * <DL> $ <DT>Noun</DT>Panax Notoginseng <DD>Explain the position of nouns</DD> - </DL> the + <!--Poor table rendering performance - A <Table> the <caption>Table header</caption> + <!--TR is a line - - <TR> $ <!--th table Head - $ <th>Monday</th> - <th>Tuesday</th> - </TR> the <TR> - <!--TD Cell -Wuyi <TD>Class</TD> the <TD>Class</TD> - </TR> Wu </Table> - </Body> About </HTML>
HTML block-level label summary (small article)