Click to See Complete Forum and Search --> : Webmaking Standards


TheSpeedoBeast
05-01-2004, 12:16 PM
Hello again, I seem to be frequenting the /dev/random formus lately!

But anyway, what is the current de-facto standard of website making? Is xhtml (1.1 strict? 2.0?) currently the best standard to use, or has there been a transition to another format? I havent been part of the webmaking scene for a year or so now, and I just wanted to make a website for a home computer-repair-service-type-thing, and a website would be a good way to get the word out about it. But please fill me on with what is the most currently and widely used format at the moment. Thanks a ton!

Hayl
05-01-2004, 12:29 PM
www.w3c.org

bwkaz
05-01-2004, 12:59 PM
Unfortunately, the vast majority of the world isn't able to understand XHTML 2.0 (for example, IE 6 SP1 completely screws up the <object> tag when you use it for images, which is the only way you can get an image with XHTML 2.0, because <img> was removed).

I think Gecko browsers can do most of it, but I've never tried. I use XHTML 1.1 (which is XHTML 1.0 Strict minus the lang attribute and plus a few tags, basically) plus CSS1, served as application/xml+xhtml (if the browser specifically requests that, as Gecko does) or text/html (if the browser specifies Accept: */* like IE does, because IE doesn't understand application/xml+xhtml, even though it says it accepts it).

And validate your pages. ;)

TheSpeedoBeast
05-01-2004, 01:19 PM
Thanks, but I do know about the w3c; I just don't know what standard is being the most commonly implemented, and what would be most compatible with most browsers. So it sounds like xhtml 1.1 strict is the best way to go? Thats what I was using about a year ago, but I just kinda assumed that the standard would have changed in that time period. Anyone else have anything to say about using xhtml 1.1?

TheSpeedoBeast
05-01-2004, 01:21 PM
Sorry, but what is the difference between xhtml and xml? The spelling? Or are they 2 completely different languages? Or is xml just a broader application of xhtml? Because that is always what I kind of assumed, but I have never verified it...

bradfordgd
05-01-2004, 02:11 PM
I'm not sure about xhtml, but one difference between XML and html is that html is strictly about presentation of data where XML provides meaning to the data. There are XML tags around the data that describe what type of data it is, versus html tags around the data telling a browser how to present it. You would use a seperate style sheet for the presentation of the XML data. XML is a subset of SGML (Standard Generalized Markup Language). Not sure how much that answers your question, but I hope it's a start.

nouse66
05-01-2004, 02:20 PM
Originally posted by TheSpeedoBeast
Sorry, but what is the difference between xhtml and xml? The spelling? Or are they 2 completely different languages? Or is xml just a broader application of xhtml? Because that is always what I kind of assumed, but I have never verified it...

i believe that xhtml is just html made to follow the xml standard.

Strogian
05-01-2004, 02:43 PM
I use HTML 4. And CSS. What's all this XHTML nonsense? :D

How about making one file, and then pass it through something to output HTML/XHTML or whatever you want? I want to be compatible with netscape4 still!

gehidore
05-01-2004, 03:09 PM
simple way to choose, make one as basic as possible, then one with all the bells an wistles. put a link on the home page that lets you choose.

bwkaz
05-01-2004, 03:11 PM
Originally posted by TheSpeedoBeast
So it sounds like xhtml 1.1 strict is the best way to go? There is no such thing as XHTML 1.1 Strict. There is XHTML 1.1, and there is XHTML 1.0 Strict (there are also other flavors of XHTML 1.0, see below). But there is no XHTML 1.1 Strict. XHTML 1.1 is mostly the same as what XHTML 1.0 Strict was.

Sorry, but what is the difference between xhtml and xml? The spelling? Or are they 2 completely different languages? XHTML is an XML "application" (now whether that means application like OpenOffice is an application, or application like applying something, I'm not sure). XML is a general markup language (I first thought of it as HTML where you can invent your own tags).

I now like to call old-style HTML "tag soup". You can improperly nest tags (<b><i>text</b></i>), you can open tags without closing them (<p>), you can generally make a complete mess of your web page's structure. You can also use the <font> tag; don't get me started on how that one violates separation between data and presentation, and brings along with it browser-cache problems when you decide to change a font!

All XML must be well-formed (so no improperly nested tags, no <p> without a matching </p>, no nesting a block-level element within an inline element., etc.). Some XML documents (e.g. XHTML documents) reference a document type definition (DTD, which tells what's legal), or they reference some other schema definition language document (XSD for example). These external documents give information on which tags are permitted to be nested inside which other tags; they give the schema for the XML application you're looking at.

Browsers have a hardcoded way to structure most XHTML (1.0 transitional/strict, and 1.1) markup (everything other than <div>s and <span>s) Other XML document types must use CSS or XSL (?) to tell the browser how to display every bit of their elements.

Originally posted by bradfordgd
I'm not sure about xhtml, but one difference between XML and html is that html is strictly about presentation of data where XML provides meaning to the data. Sort of, but not really. HTML is about presentation (how to display something) and data (what that something is). XHTML 1.0 deprecated most of the presentation tags and attributes in HTML, but the XHTML 1.0 Transitional doctype still allows them in a conforming document. XHTML 1.0 Strict does not allow them. (There is also XHTML 1.0 Frameset, for creating documents with frames -- the frame source documents are generally XHTML 1.0 Transitional or Strict themselves).

XHTML 1.1 removes all elements that were deprecated in all XHTML 1.0 incarnations, so it's a lot like 1.0 Strict. It also adds some new markup for "ruby" elements (see http://www.w3.org/TR/2001/REC-ruby-20010531/).

You would use a seperate style sheet for the presentation of the XML data. You can also use a separate stylesheet for HTML if you want. But since <font> and friends are valid in conforming HTML 4.0 and 4.01 documents, nobody usually used them (even when they provided maintenance advantages).

XML is a subset of SGML (Standard Generalized Markup Language). I don't know, but I'm fairly sure SGML is separate from XML. I'm almost positive that HTML 4 is valid SGML, even in "tag soup" mode, so I'm wondering how a markup language that can allow that tag soup (SGML) can be subset-ted into a markup language that does not (XML). But maybe it can, I won't say for sure.

Originally posted by Strogian
How about making one file, and then pass it through something to output HTML/XHTML or whatever you want? I'm not entirely sure that's possible (if by "HTML" you mean "tag soup"), or at all desireable (if you want "tag soup" at all -- why would you?). When you can take a "good" HTML document (a non-tag soup one), change the doctype, and make it a valid XHTML 1.0 document (usually at Transitional, but sometimes at Strict or XHTML 1.1), it really removes any need for a tool that would do that. Otherwise, there's always HTML Tidy (from the W3C), to turn tag soup into valid XHTML.

I want to be compatible with netscape4 still! Why? Seriously, who still uses that old pile? If there are still people, they are the ones that the Web Standards Project people are trying to get to upgrade. Move on yourself, for goodness' sake! ;) If everybody moves on, so will these few stragglers. Eventually.

TheSpeedoBeast
05-01-2004, 03:26 PM
Yeah, sorry about the 1.1 strict thing, I just saw on w3c that there was strangely enough no 1.1 variants. Which I like better, because there some things which I just do not like having to make a choice on. (My OS noninclusive). But I am going to just grab a template from oswd.org (man, I love that website for quick, temporary websites) and convert it to 1.1 xhtml from there. Thanks for your input though!

Strogian
05-01-2004, 03:44 PM
By HTML, I mean the HTML 4.0 recommendation on w3c's site. That isn't tag soup, AFAIK. Neither is HTML 3, or 2, I don't think. You have to nest your tags properly. You don't have to close everything, as long as the end tag can be inferred. But that's not a bad thing -- makes things a bit more tidy.

Except that you do have to close them if you want them to look right on all browsers.

Some browsers will render incorrect HTML (i.e. "tag soup"), but it's still not valid HTML. In particular:

<b>this is bold<i>this is italic and bold</b></i>

that is invalid.

Maybe I should move on to XHTML, if it's the same thing. :D

bwkaz
05-01-2004, 06:47 PM
Yes Strogian, you basically just described XHTML. :D

Stuka
05-03-2004, 04:20 PM
Originally posted by Strogian
How about making one file, and then pass it through something to output HTML/XHTML or whatever you want? I want to be compatible with netscape4 still! You've just describe XML and XSLT. Basically you have a 'base' XML document, and then one or more XSLT templates, which an XSLT processor like Saxon (http://saxon.sourceforge.net/) will then use to transform your document into appropriate presentation types (WML, XHTML, etc.).

bwkaz
05-03-2004, 06:44 PM
But I don't think that XSL templates can generate tag soup, can they?

Not that you'd want tag soup, but if you didn't, then you really only want XHTML, so what's the point? ;)