What's the difference between these two tags?? "<br> and <br />
Hani1991 12 Junior Poster
Recommended Answers
Jump to PostThis means that it doesn't close an opened tag at all.. It closes itself by adding the slash to the end of it (with a space before).
Jump to Postwe must practise to do it in correct format. Better you use <br /> <img />. Though it will not change layout, if you do not add space and slash.
Jump to Post"does that change anything"
validation errors in xhtml code, and
some browsers may fail to display the tag/page (depending on the number of code errors)xhtml has strict structure rules
must use self closed tags, periodstuff we use a lotthese standard test beds may assist you
All 12 Replies
leakbali 0 Light Poster
almostbob 866 Retired: passive income ROCKS
Pro2000 29 Posting Whiz
Hani1991 12 Junior Poster
urtrivedi 276 Nearly a Posting Virtuoso
almostbob 866 Retired: passive income ROCKS
Hani1991 commented: Thank you for wasting your time to help me. +2
Hani1991 12 Junior Poster
Arkinder 93 Posting Pro in Training
Arkinder 93 Posting Pro in Training
almostbob 866 Retired: passive income ROCKS
Arkinder 93 Posting Pro in Training
dreamer14 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.