What do you call tags that need no ending tag?

后端 未结 13 1457
旧时难觅i
旧时难觅i 2020-12-13 00:12

There are HTML tags, such as , and

13条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 00:19

    HTML tags can be of two types. They are

    1. Paired Tags

    2. Unpaired Tags

    Paired Tags:

    A tag is said to be a paired tag if the text is placed between a tag and its companion tag. In paired tags, the first tag is referred to as Opening Tag and the second tag is referred to as Closing Tag.

    Example: This text is in italics.

    Note: Here is called opening tag. and is called closing tag.

    Unpaired Tags:

    An unpaired tag does not have a companion tag. Unpaired tags are also known as Singular or Stand-Alone Tags.

    Example :
    ,


    etc. These tags does not require any companion tag.

提交回复
热议问题