CSS block-level elements and row-level elements are reprinted

Source: Internet
Author: User

CSS block-level elements and row-level elements (reprinted) and css-level elements

  1. A block element generally starts from a new line. It can accommodate inline elements and other block elements. A common block element is the section tag 'P ". The "form" block element is special. It can only accommodate other block elements.
  2. If no css function is available, the block elements are arranged in the order of each row. With css, we can change the default layout of html and place block elements in the desired position. Instead of just starting another line. It should be noted that table labels are also a type of block elements. table based layout and css based layout are from average users (excluding persons with visual impairment and blind people) the two la s have no difference except the page loading speed. However, if a common user inadvertently clicks the page source code button, the difference between the two is very large. The css layout page source code, designed based on a good refactoring concept, should at least allow common users without web development experience to quickly read and understand the content. From this perspective, css layout code should have a better aesthetic experience.
  3. You can think of the block container element div as a box, or it is easier to understand if you have played the clipboard. First, we cut down the necessary articles from various newspapers and magazines. Each piece of cut is a block. Then we pasted the paper block to a blank new paper with glue based on our typographical intent. This forms your own unique digest Express. As an extension of technology, webpage layout design follows the same pattern ..
  4. Inline elements are generally basic elements based on the semantic level (semantic. Inline elements can only contain text or other inline elements. Common inline elements are "".
  5. Both block element and inline element are concepts in the html specification. The basic difference between block elements and inline elements is that block elements generally start from a new line. After css control is added, the differences between block elements and inline elements will not be the same. For example, we can add the inline element cite to the display: block attribute so that it also has attributes starting from the new line each time.
  6. The basic concept of a variable element is to determine whether the element is a block element or an inline element based on the context relationship. The variable element still belongs to the above two element categories. Once the context relation determines its category, it must follow the block element or Inline element rule restrictions. For rough element classification, see the full text.
  7. For the Chinese name of inline elements, there are multiple inline elements, embedded elements, in-row elements, and straight forward elements. Basically, there is no unified translation. What do you call love. When we mention inline elements, we will think of a display attribute: display: inline; which can fix the famous IE Double Floating boundary.
  8. Block element)
  9. * Address-address
  10. * Blockquote-block reference
  11. * Center-align Blocks
  12. * Dir-directory list
  13. * Div-common block-level labels are easy, and they are also the main labels of css layout.
  14. * Dl-definition list
  15. * Fieldset-form Control Group
  16. * Form-interactive form
  17. * H1-large title
  18. * H2-subtitle
  19. * H3-Level 3 title
  20. * H4-4 level title
  21. * H5-Level 5 Title
  22. * H6-6 titles
  23. * Hr-horizontal Separator
  24. * Isindex-input prompt
  25. * Menu-menu list
  26. * Optional content of noframes-frames. (content in this block is displayed in browsers that do not support frame.
  27. * Noscript-optional script content (this content is displayed in browsers that do not support scripts)
  28. * Ol-sorting form
  29. * P-paragraph
  30. * Pre-format text
  31. * Table-table
  32. * Ul-non-sorted list
  33. Inline element)
  34. * A-anchor
  35. * Abbr-abbreviation
  36. * Acronym-First word
  37. * B-bold (not recommended)
  38. * Bdo-bidi override
  39. * Big-large font
  40. * Br-line feed
  41. * Cite-Reference
  42. * Code-computer code (required when source code is referenced)
  43. * Dfn-define a field
  44. * Em-emphasis
  45. * Font-font setting (not recommended)
  46. * I-italic
  47. * Img-Image
  48. * Input-input box
  49. * Kbd-defines the keyboard text
  50. * Label-Table label
  51. * Q-short reference
  52. * S-hyphen (not recommended)
  53. * Samp-Defines sample computer code
  54. * Select-select a project
  55. * Small-small font text
  56. * Span-commonly used inline containers that define text blocks
  57. * Strike-dashes
  58. * Strong-highlighted in bold
  59. * Sub-subscript
  60. * Sup-superscript
  61. * Textarea-multi-line text input box
  62. * Tt-telex text
  63. * U-underline
  64. * Var-define variables
  65. Variable Element
  66. The variable element determines whether the element is a block element or an inline element based on the context.
  67. * Applet-java applet
  68. * Button-button
  69. * Del-delete text
  70. * Iframe-inline frame
  71. * Ins-inserted text
  72. * Map-image block (map)
  73. * Object-object
  74. * Script-client script

 

------------------------------------------------ The preceding content

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.