Stefan
Stefan

Reputation: 1069

Why some tags in HTML are closed with <> or </>?

I am doing some JSP coding in Eclipse, which is not the best IDE for auto-completion. I get many typos for elements that should be closed with </> instead of </> or the opposite.

Does anyone have a rule of thumb that helps me identify which ones close with / in the closing tag and which ones don't?

Some of you may tell me to code in a better editor like Visual Studio and copy code, but sometimes I am too lazy to copy a few lines of code. Hope you understand me :)

Upvotes: 0

Views: 35

Answers (1)

Mostafa Tabrizian
Mostafa Tabrizian

Reputation: 94

each time you want use the tags you should start with <> and end it with </> for example:

<body>
  <h1> This is a head </h1>
  <div> This is a div </div>
</body>

Upvotes: 1

Related Questions