- Block elements generally start from the new line, which can accommodate inline elements and other block elements, and the common block element is the paragraph label ' P '. The block element of "form" is special, and it can only be used to accommodate other block elements.
- If there is no CSS, the block elements are ordered to go down in a row each time. With CSS, we can change the default layout of this HTML and put the block elements where you want them. Instead of every stupid other line. It should be noted that table tags are also one of the block elements, table based layout and CSS based layout from the perspective of the general user (not including visually impaired, blind, etc.) of the two layouts, in addition to the page loading speed differences, there is no other difference. But if ordinary users inadvertently point to the page Source code button, the difference between the two is very large. Based on the concept of good reconstruction of CSS layout page source code, at the very least, can let no web development experience of ordinary users to quickly read the content. From this point of view, CSS layout code should have a better aesthetic experience.
- You can think of the block element div as a box, or if you've played a clip, it's easier to understand. We first cut down the articles we need from various newspapers and magazines. Each cut is a block. Then we put the pieces of paper on a blank new piece of paper according to our own layout intent. This will create your own unique digest letters. As an extension of technology, Web page layout design also follows the same pattern.
- Inline elements (inline element) are generally based on semantic level (semantic) basic elements. Inline elements can only hold text or other inline elements, common inline element "a".
- Both the block element and the inline element are concepts in the HTML specification. The basic difference between a block element and an inline element is that the block element generally starts from the new row. When CSS control is added, this attribute difference between the block element and the inline element does not become a difference. For example, we can completely add an inline element cite to a property such as Display:block, so that he also has properties that start from the new line each time.
- The basic concept of a mutable element is that he needs to determine whether the element is a block element or an inline element based on the context relationship. Mutable elements are also part of the above two categories of elements, and once the context determines his category, he follows the rules of block elements or inline elements. The approximate elements are categorized in full.
- The Chinese term for inline element has a variety of inline elements, inline elements, in-line elements, and straight-forward elements. Basically there is no unified translation, love how to call it. In addition to the inline element, we think that the property of a display is display:inline, which fixes the famous IE double floating boundary problem.
- Block element
- * Address-addresses
- * BLOCKQUOTE-Block reference
- * Center-align Block
- * DIR-List of directories
- * Div-Common block-level easy, is also the main tag of CSS layout
- * DL-Definition List
- * Fieldset-form control Group
- * Form-Interactive form
- * H1-Big title
- * H2-Subtitle
- * H3-3 level Title
- * H4-4 level Title
- * H5-5 level Title
- * H6-6 level Title
- * HR-Horizontal divider Line
- * Isindex-input Prompt
- * menu-List of menus
- * Noframes-frames Optional content, (for browsers that do not support frame, display this chunk content
- * NoScript-Optional script content (this content is displayed for browsers that do not support script)
- * Ol-Sort Form
- * P-Paragraph
- * Pre-formatted text
- * Table-form
- * ul-Non-sorted list
- Inline elements (inline element)
- * A-Anchor point
- * ABBR-abbreviation
- * Acronym-First word
- * B-Bold (not recommended)
- * Bdo-bidi Override
- * Big-Large font
- * BR-line break
- * Cite-citation
- * Code-computer code (required when referencing the source)
- * DFN-Define Fields
- * EM-emphasis
- * Font-typeface settings (not recommended)
- * I-Italic
- * img-Images
- * Input-Enter box
- * KBD-Define keyboard text
- * Label-table label
- * Q-Short reference
- * S-Medium dash (not recommended)
- * Samp-Define sample computer code
- * Select-Project selection
- * Small-Small font text
- * span-a common inline container that defines chunks within a text
- * Strike-Medium dash
- * Strong-Bold Emphasis
- * Sub-subscript
- * SUP-Superscript
- * TEXTAREA-multi-line text input box
- * TT-Telex text
- * U-Underline
- * var-Define Variables
- Variable element
- A mutable element is a block element or an inline element that determines whether the element is in context.
- * Applet-java Applet
- * Button-Buttons
- * Del-delete text
- * Iframe-inline Frame
- * INS-Inserted text
- * Map-image block (map)
- * Object-object Object
- * Script-client-side scripting
HTML block-level elements and inline elements