What is the difference between HTML tags
and ?

后端 未结 13 1319
时光取名叫无心
时光取名叫无心 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:14

    Remember, basically and them self doesn't perform any function either. They are not specific about functionality just by their tags.

    They can only be customized with the help of CSS.

    Now that coming to your question:

    SPAN tag together with some styling will be useful on having hold inside a line, say in a paragraph, in the html. This is kind of line level or statement level in HTML.

    Example:

    Am writingthis answer in my free time of my day.

    DIV tag functionality as said can only be visible backed with styling, can have hold of large chunks of HTML code.

    DIV is Block level

    Example:

        

    Am writing this answer in my free time of my day.

    Both have their time and case when to be used, based on your requirement.

    Hope am clear with the answer. Thank you.

提交回复
热议问题