damiancds Posted February 11, 2009 Share Posted February 11, 2009 i see this in the examples section here and I haven't figured out the importance<br />I realize it's a break tag, I know that much, what I don't know is the meaning of the slashcan anyone explain this?thanks in advance, Link to comment Share on other sites More sharing options...
jlhaslip Posted February 11, 2009 Share Posted February 11, 2009 The 'slash' closes the tag.Usually the 'end' tag of a tag-pair has the 'slash', but some tags are 'empty' and do not have an ending tag, so having it in the opening tag works to signal the end of the tag-block.Meta tags in xhtml also need the slash, but there are not many that need it. Link to comment Share on other sites More sharing options...
jeffman Posted February 11, 2009 Share Posted February 11, 2009 What spam-boy came close to saying, but didn't quite, is that unitags only need the slash in XHTML. In HTML the slash is incorrect. Link to comment Share on other sites More sharing options...
damiancds Posted February 11, 2009 Author Share Posted February 11, 2009 Ok, i saw it often enough and my reference book doesn't even cover closing the empty tags, it covers them a little thoughthanks, Link to comment Share on other sites More sharing options...
jarrett000 Posted February 15, 2009 Share Posted February 15, 2009 Every tag must be closed. but since <br> has no </br> you close the tag withing the tag thus <br /> other examples are img /> and input />. Link to comment Share on other sites More sharing options...
Synook Posted February 16, 2009 Share Posted February 16, 2009 By the way, in SGML <br /> actually equals "<br ></br >>". Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.