HTML block-level tag Summary (small) and html Tag Summary
Block-level elements, in short, are the elements that occupy only one row. Features:
① Always start on a new line;
② Height, row height, and outer and inner margins can be controlled;
③ The default width is 100% of its container unless a width is set.
④ It can accommodate inline elements and other block elements
The summary code is as follows:
Copy XML/HTML Code to clipboard
- <! Doctype html>
- <Html>
- <Head>
- <Meta charset = "UTF-8">
- <Title> Document </title>
- </Head>
- <Body>
- <! -- A block element excludes a row -->
- <! -- Div is silent and called as a box -->
- <Div> box </div>
- <! -- H1-h6 semantic definition title -->
- <H1> Title 1
- <H2> Title 2
- <H6> Title 3
- <! -- P semantic section label write text -->
- <P> Article </p>
- <! -- The list is mostly used to store a series of similar data -->
- <! -- Ordered list -->
- <Ol>
- <Li> Navigation 1 </li>
- <Li> navigation 2 </li>
- <Li> navigation 3 </li>
- </Ol>
- <! -- Unordered list -->
- <Ul>
- <Li> Navigation 1 </li>
- <Li> navigation 2 </li>
- <Li> navigation 3 </li>
- </Ul>
- <! -- Define the list to explain a term -->
- <Dl>
- <Dt> TERM </dt>
- <Dd> location of GLOSSARY </dd>
- </Dl>
- <! -- Table rendering performance is not easy to use -->
- <Table>
- <Caption> table header </caption>
- <! -- Tr is a row -->
- <Tr>
- <! -- Th header -->
- <Th> Monday </th>
- <Th> Tuesday </th>
- </Tr>
- <Tr>
- <! -- Td cell -->
- <Td> class </td>
- <Td> class </td>
- </Tr>
- </Table>
- </Body>
- </Html>
The above is a summary of HTML block-level tags (small) introduced by xiaobian. If you have any questions, please leave a message and I will reply to you in time. Thank you very much for your support for the help House website!