line-break ??

message from Neil_vN on 15 Jul 2004
Can anyone explain to me why Dreamweaver inserts a line break as (br \)
with angle brackets of course ..

instead of the usual (br)

Why the backslash and why the space ?? ??
 
Joe Makowiec replied to Neil_vN on 15 Jul 2004
The W3C can:

http://www.w3.org/TR/xhtml1/#h-4.6
 
darrel replied to Neil_vN on 15 Jul 2004
It's actually <br />

You are using XHTML

in XHTML all tags must be closed.

If a tag doesn't have a corresponding closing tag (like the BR, IMG, or HR
tags have) then they have to be self-closed, which the trailing slash
indicates.

-Darrel
 
Neil_vN replied to Neil_vN on 15 Jul 2004
I am using a template.

And it does say this in the header ..
(html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en")

You would have to break down the difference and the explanation down to basics
please. :-)
 
Murray *TMM* replied to Neil_vN on 15 Jul 2004
Because you have told it to use XHTML when you created your new page?
 

Archived message: line-break ?? (Macromedia Dreamweaver Web Design)