HTML block-level label summary (small article)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.