What is the difference between HTML tags
and ?

后端 未结 13 1062
时光取名叫无心
时光取名叫无心 2020-11-22 05:48

I would like to ask for some simple examples showing the uses of

and . I\'ve seen them both used to mark a section of a pa
13条回答
  •  死守一世寂寞
    2020-11-22 06:19

    In HTML there are tags that add structure or semantics to content. For example the

    tag is used to identify a paragraph. Another example is the

      tag for an ordered list.

      When there is no suitable tag available in HTML as shown above, the

      and tags are usually resorted to.

      The

      tag is used to identify a blocklevel section/division of a document that has a line break both before and after it.

      Examples of where div tags can be used are headers, footers, navigations etc. However in HTML 5 these tags have already been provided.

      The tag is used to identify an inline section/division of a document.

      For example a span tag can be used to add inline pictographs to an element.

提交回复
热议问题