CSS block-level elements and row-level elements (reprinted) and css-level elements
- 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.
- 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.
- 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 ..
- 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 "".
- 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.
- 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.
- 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.
- Block element)
- * Address-address
- * Blockquote-block reference
- * Center-align Blocks
- * Dir-directory list
- * Div-common block-level labels are easy, and they are also the main labels of css layout.
- * Dl-definition list
- * Fieldset-form Control Group
- * Form-interactive form
- * H1-large title
- * H2-subtitle
- * H3-Level 3 title
- * H4-4 level title
- * H5-Level 5 Title
- * H6-6 titles
- * Hr-horizontal Separator
- * Isindex-input prompt
- * Menu-menu list
- * Optional content of noframes-frames. (content in this block is displayed in browsers that do not support frame.
- * Noscript-optional script content (this content is displayed in browsers that do not support scripts)
- * Ol-sorting form
- * P-paragraph
- * Pre-format text
- * Table-table
- * Ul-non-sorted list
- Inline element)
- * A-anchor
- * Abbr-abbreviation
- * Acronym-First word
- * B-bold (not recommended)
- * Bdo-bidi override
- * Big-large font
- * Br-line feed
- * Cite-Reference
- * Code-computer code (required when source code is referenced)
- * Dfn-define a field
- * Em-emphasis
- * Font-font setting (not recommended)
- * I-italic
- * Img-Image
- * Input-input box
- * Kbd-defines the keyboard text
- * Label-Table label
- * Q-short reference
- * S-hyphen (not recommended)
- * Samp-Defines sample computer code
- * Select-select a project
- * Small-small font text
- * Span-commonly used inline containers that define text blocks
- * Strike-dashes
- * Strong-highlighted in bold
- * Sub-subscript
- * Sup-superscript
- * Textarea-multi-line text input box
- * Tt-telex text
- * U-underline
- * Var-define variables
- Variable Element
- The variable element determines whether the element is a block element or an inline element based on the context.
- * Applet-java applet
- * Button-button
- * Del-delete text
- * Iframe-inline frame
- * Ins-inserted text
- * Map-image block (map)
- * Object-object
- * Script-client script
------------------------------------------------ The preceding content