About Self Closing Tags in HTML

How many Self-Closing Tags are there in HTML? Which are they ? and Where are these tags used?


9 Answers
1-9 of  9
9 Answers
  • These tags will not have a closing tag. we can open and close it in a single tag using slash. examples are like br,img,hr, etc.

  • <area /> – clickable area inside an image map
    <base /> – new root or base path for relitive paths
    <br /> – single line break in a paragraph
    <embed /> – embeds things like flash
    <hr /> – change in type of content
    <iframe /> – frame inside the page
    <img /> – image
    <input /> – input field
    <link /> – include an external style sheet
    <meta /> – metadata about the page
    <param /> – parameter for an object
    <source /> – include media for video or audio
    <track /> – text track for video or audio
    In HTML5 the slash is optional 
    In HTML4 and less the slash is treated as wrong(not to be used)
    But in XHTML/XML the slash is mandatory.It helps to define the type of content being served from the server is XHTML/XML otherwise it is being treated as HTML

  • A self-closing tag is an element of HTML code that has evolved in the language. Typically, the self-closing tag makes use of a “/” character in order to effectively close out a beginning tag enclosed in sideways carets.

  • self-closing tag is an element of HTML code that has evolved in the language. Typically, the self-closing tag makes use of a “/” character in order to effectively close out a beginning tag enclosed in sideways carets

  • there are so many tags in html but i have never s
    used such kind of tags . but there are single tags also which dosent require closing tag

  • 14 Self-closing Tags are there in HTML. Those tags are ,,,,,,,,,,,,,, (obsolete) (obsolete), (obsolete). These tags are used to analyse and check the error. (obsolete) (obsolete) (obsolete) (obsolete) (obsolete) (obsolete)

  • 14

  • which is a empty element without a closing tag

Html

Didn't get the answer.
Contact people of Talent-Html directly by clicking here