zero_ZX Posted April 1, 2009 Share Posted April 1, 2009 So.. when browsing alot of scripts.. alot make the <br /> How comes? why aint <br> good enough any more? Please tell me Quote Link to comment Share on other sites More sharing options...
djsckizo Posted April 1, 2009 Share Posted April 1, 2009 HTML uses <br>, and XHTML uses <br/>...basically break with an ending tag. Quote Link to comment Share on other sites More sharing options...
killah Posted April 1, 2009 Share Posted April 1, 2009 Using <br> in XHTML markup and try to validate it. It won't validate. Using <br /> in XHTML markup and try to validate it. It will validate. Normaly thing's with no ending tag. Like these: <input> <img> <br> <hr> ETC need an ending tag. So XHTML grab's the / at the end as an ending tag. Well, that is what i think and i am probly 100% correct until the line above. Quote Link to comment Share on other sites More sharing options...
Maq Posted April 1, 2009 Share Posted April 1, 2009 It's part of XHTML which is a new mark up combing XML and HTML. Since XML requires you to close all elements, is closing itself because there is nothing that you ever put inside of a br tag.. Read more here. Quote Link to comment Share on other sites More sharing options...
zero_ZX Posted April 2, 2009 Author Share Posted April 2, 2009 ahh okay thanks alot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.