What's the difference between these two tags?? "<br> and <br />
Hani1991
12
Junior Poster
Recommended Answers
Jump to Post<br> is an empty tag, it must close on open tag. In XHTML <br> tag must close in open tag, <br />
Jump to Posthtml is fairly flexible in its structure, incomplete code is accepted by the parser
the xhtml specification is much more strict
in xhtml all tags must close
eg <a></a>
singleton tags such as <img><br> must self close as <img /> <br />
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.