Home >Web Front-end >Front-end Q&A >What element is p?

What element is p?

藏色散人
藏色散人Original
2019-08-05 09:51:0723550browse

What element is p?

What element is p?

p is a terminal block element. This type of element is used to move from structure to content. They have semantic meaning and can indicate the nature of the content. Terminal block elements belong to the end of the structure. They cannot contain other block-level elements, only text or line-level elements.

Terminal block element
*

...


*


*


*

*

*

Related introduction:

Classification of block-level elements
Block-level elements are based on their application Depending on the structure or content, there are three types: structured block elements, terminal block elements, and multi-target block elements.
1. Structured block elements
This type of element is used to structure the document. A good document structure is very beneficial to search engines and the application of other technologies (such as JavaScript). They have no semantic meaning. They only define the organization of the document and do not reflect the content of the document.
Main structured block elements
*


    *

      *

      *
      Support structured elements
      *

    • *

      *

      *

    • *
      *
      *
      *
      2. Terminal block elements
      This type of element is used to move from structure to content, and they have semantic meaning , can indicate the nature of the content. Terminal block elements belong to the end of the structure. They cannot contain other block-level elements, only text or line-level elements.
      Terminal block element
      *

      ...


      *


      *


      *

      *

      *

      *

      3. Multi-target block element
      The so-called multi-target refers to the structure of the document that can be freely extended or nested, and appears in the form of a terminal. Multi-objective block elements have structural connotations when used in a structured manner, and semantic connotations when used in terminal form.
      Multi-target block elements can contain either block elements or content (the combination of text and line-level elements is content), but not both at the same time. Content should be placed in block elements. Block elements should not be used as siblings of line-level elements and text. Due to the limitations of the HTML validator, there is currently no way to detect this situation, but it should be avoided.
      Multi-target block element
      *

      *

    • *

      *

    • *

      *