html tag question regarding start tags?

  • Thread starter Thread starter Buben
  • Start date Start date
B

Buben

Guest
I read somewhere that it is recommended for future html documents to add a slash at the end of a tag (like <tag />) but It says that it should have a slash after, but the example has a space (like <tag />)
Question: do you add a space at the starting tag?
 
The only tags that have this type of code are empty tags. Example, <br /> and <hr /> Tags that require opening and closing the convention is that the slash preceeds the tag name, ie <p>some text</p>, <a>..</a>, <span> </span>, <em>text</em>, etc
 
Back
Top