HighDots Forums  

Migrating to XHTML: empty elements

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Migrating to XHTML: empty elements in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark
 
Posts: n/a

Default Migrating to XHTML: empty elements - 07-08-2005 , 10:55 PM






(I'm new to these groups, so I'm not sure which one to use ...)

XHTML has been emabled in virtually all modern browsers. So is there any
more need for the space before the closing tags in empty elements?

The following seems to work for me in the browser's I've got:

<br/>

I no longer have IE 5, but do a significant enough number of users still
have the old browsers?

Mark

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Migrating to XHTML: empty elements - 07-09-2005 , 03:58 AM






Mark <mark (AT) manngo (DOT) net.example.net> wrote:

Quote:
(I'm new to these groups, so I'm not sure which one to use ...)
Then it's generally best to study the situation until you know the
_right_ group. The choice between comp.* and alt.* is yours of course;
usually selecting either is better than selecting both.

Quote:
XHTML has been emabled in virtually all modern browsers.
I guess so, assuming that "emabled" means "screwed up" or something
like that. Try sending XHTML the right way to IE 6, and it will choke
up (well, just ask the user where to save the data).

Quote:
So is
there any more need for the space before the closing tags in empty
elements?
Huh? An element has at most one closing tag.

Quote:
The following seems to work for me in the browser's I've got:

br/
It works on IE only because IE knows neither "old" HTML nor XHTML.
It won't work by XHTML rules, whatever you do. It secretly slurps tag
soup in its old way, ignoring the slash because it does _not_ parse
"old" HTML correctly.

If you are confused, the ultimate reason is XHTML. Forget that you ever
heard of it; ignore it as marketese, academese, or nerdese. Later if
you'll find yourself in a situation where you need to and you can
combine HTML-like markup with XML markup, or utilize generic XML tools
for your HTML, _then_ it's time to learn XHTML.

Any XHTML specification or tutorial should really contain the note
"Kids, don't do this on the WWW (yet)".

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.