HTML block-level tag Summary (small) and html Tag Summary

Source: Internet
Author: User

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
  1. <! Doctype html>
  2. <Html>
  3. <Head>
  4. <Meta charset = "UTF-8">
  5. <Title> Document </title>
  6. </Head>
  7. <Body>
  8. <! -- A block element excludes a row -->
  9. <! -- Div is silent and called as a box -->
  10. <Div> box </div>
  11. <! -- H1-h6 semantic definition title -->
  12. <H1> Title 1
  13. <H2> Title 2
  14. <H6> Title 3
  15. <! -- P semantic section label write text -->
  16. <P> Article </p>
  17. <! -- The list is mostly used to store a series of similar data -->
  18. <! -- Ordered list -->
  19. <Ol>
  20. <Li> Navigation 1 </li>
  21. <Li> navigation 2 </li>
  22. <Li> navigation 3 </li>
  23. </Ol>
  24. <! -- Unordered list -->
  25. <Ul>
  26. <Li> Navigation 1 </li>
  27. <Li> navigation 2 </li>
  28. <Li> navigation 3 </li>
  29. </Ul>
  30. <! -- Define the list to explain a term -->
  31. <Dl>
  32. <Dt> TERM </dt>
  33. <Dd> location of GLOSSARY </dd>
  34. </Dl>
  35. <! -- Table rendering performance is not easy to use -->
  36. <Table>
  37. <Caption> table header </caption>
  38. <! -- Tr is a row -->
  39. <Tr>
  40. <! -- Th header -->
  41. <Th> Monday </th>
  42. <Th> Tuesday </th>
  43. </Tr>
  44. <Tr>
  45. <! -- Td cell -->
  46. <Td> class </td>
  47. <Td> class </td>
  48. </Tr>
  49. </Table>
  50. </Body>
  51. </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!

Related 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.