Does all html tag has an end tag?

No, as there are some tags that do not need any closing tags. Tags can come in two formats which are paired format and unpaired format. Paired tags are those which have both the start tag and the end tag and unpaired tags are those which only consist of the start tag. For example -

  • Unpaired tags : - <hr> tag, <br> tag and etc.
  • Paired tags: - <html>..</html>, <p>...</p> and etc.