Thursday, 12 September 2013

HTML Standards on usage

HTML Standards on usage

Apparently, HTML5 explicitly states that <br> tags must be used within the
content of elements for example as in <p> tags below:
<p> Line 1 <br> Line 2 </p>
However, I don't see that the same is true with HTML 4.01. So, it seems
that can use the <br> tags this way as well to force a line break:
Line 1 <br> Line 2 <br> ..
Can someone confirm how true or untrue is what I have here according to
both the standards?

No comments:

Post a Comment