Re: Question about new lines [message #175510 is a reply to message #175508] |
Mon, 03 October 2011 12:48 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 10/3/2011 7:42 AM, Jeff Gaines wrote:
> On 03/10/2011 in message <j6c64g$joe$2(at)dont-email(dot)me> Jerry Stuckle wrote:
>
>> Which isn't valid on html - only xhtml or xml.
>
> There seems to be confusion about whether or not the / is optional. In
> reality, of course, all browsers honour it.
>
Whether browsers honor it or not is immaterial. It is directly against
the HTML spec, and attempts to validate pages with such ops will fail.
Just because browsers currently support it does not mean future browsers
will support something that violates the spec. It's also very sloppy
programming.
You are much better off conforming to the spec so the browser doesn't
have to guess at what you want.
Additionally, <br> does not have the same effect as <p>...</p>.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|