![]() ![]() |
Founder & Administrator![]() Group: Admin - Top Level
Joined: 29-August 02
Posts: 11,644
From: Bucks County, PA
|
Jun 14 2004, 11:28 AM |
|
|
In a small biz Group called The Creative Enterprises Network Board that I belong to, someone is asking about doc types. This is something I'm just now getting interested in myself. I could swear there was a good instructional thread on this here. Was there?
Can anyone point out a primer type of thread or link anywhere (here or somewhere else) that non-technical people would be able to use? Thanks a bunch! |
||
| Offline | ![]() |
Moderator Alumni![]() Group: Hall Of Fame
Joined: 27-January 03
Posts: 3,438
From: Brighton, UK
|
Jun 14 2004, 11:30 AM |
|
|
I don't know if it's good, or if non-technical people can use it, but I wrote one ... http://www.ilovejackdaniels.com/Design/DTDs_Explained
|
||
| Offline | ![]() |
Moderator Alumni![]() Group: Hall Of Fame
Joined: 31-August 02
Posts: 15,634
|
Jun 14 2004, 11:57 AM |
|
| Offline | ![]() |
Moderator![]() Group: Moderators
Joined: 6-March 03
Posts: 7,962
From: Langley, British Columbia, Canada
|
Jun 14 2004, 12:23 PM |
|
|
Perhaps this thread should go public. I've learned much by checking what was going on here.
It even encouraged me to check how well my web pages validated with the W3C Markup Validation Tool. The answer was OK but could be better. I now have a related problem. Many of my pages have existed many years and have evolved through the years. They say they're HTML 4.01 in the Document Declaration Tag but now have slight problems. I now use Dreamweaver MX with text editor tweaking. Dreamweaver MX would provide XHTML type code. So to my question. Is there any easy and robust way of upgrading my (?) HTML 4.01 to some variant of XHTML? |
||
| Offline | ![]() |
Moderator![]() ![]() Group: Moderators
Joined: 29-August 02
Posts: 5,751
From: Bristol, UK
|
Jun 15 2004, 04:02 AM |
|
|
QUOTE Is it me or is it hard to read? (Small font). :oops:
Yuhuh, I guess it is, forgotten I'd set that to 0.8em, might change that soon I think, heh, a beauty of CSS, I'll be able to change that one mention of the text size for both those columns and the whole site will adjust As far as the HTML3.2 is concerned, woah! Didn't know anyone was still using that! Personally I'd suggest going straight to XHTML1, I think thats going to beocme the standard of choice for some time to come. XHTML2 is on the books, but not backwards compatible at all, and I think that will take things too far away from the ability of many designers. HTML/XHTML aren't THAT difficult to learn, but by the sounds of it XHTML2 is heading more towards the kind of language of programmers. Not in a dynamic sense, just not nearly as intuitive as the current popular tools. The main practical differences between HTML4 and XHTML1 are fairly minor. There is the issue of it being served as XML or text, but even I would suggest not getting into that one for the moment. Otherwise is mainly ensuring all tags are closed properly, that means lone tags like <img> become <img />. All attributes in lower case. Stricter rules on nesting. A few things that were deprecated in HTML4 are now actually gone. X'ing HTML is my fuller attempt at explaining some of the differences (an article I should probably review to check I'm sure its still right actually) and the WDVL link at the end is a good read on that kind of thing. Either way, I'd certainly strongly recommend at least moving up to HTML4! And using DocTypes. Its worth noting, that, as Richard mentioned, some browsers go into 'quirks' mode when no DocType is specified, however some don't! Like Opera, that always goes for full on standards mode, though they have built in a few bugs to behave like IE at times. |
||
| Offline | ![]() |
Moderator Alumni![]() Group: Hall Of Fame
Joined: 31-August 02
Posts: 15,634
|
Jun 15 2004, 05:41 AM |
|
|
QUOTE Doctypes are only mandatory for XHTML, so you don't have to put a Doctype in for HTML 3.2. Doctypes were around back before someone had ever considered crossing xml with html. As ILJD stated, a page will work without a document type definition, but why not include one. It tells the browser which version of html you are using. I'd also recommend using a validator, like the one from the W3C. There are some differences between html 3.2 and 4.01, and possibly the best thing for your friend to do is to start with the newer version. I don't see the urgency to go to xhtml 1 from html 4.01, since they are so similar, but I'm not sure that it would be harmful for you friend to start there. The w3schools tutorials on html/xhtml/css are nice because they let people type out, and try out the examples online. That hands on approach is helpful. http://www.w3schools.com/default.asp |
||
| Offline | ![]() |
Moderator![]() ![]() Group: Moderators
Joined: 29-August 02
Posts: 5,751
From: Bristol, UK
|
Jun 15 2004, 08:13 AM |
|
|
The WaSP's HTML Versus XHTML should give some of the pros and cons of the 2 as well
|
||
| Offline | ![]() |
Moderator Alumni![]() Group: Hall Of Fame
Joined: 7-November 02
Posts: 6,179
From: New England, USA
|
Jun 15 2004, 08:25 AM |
|
|
The HTML Cat at the Library has a few more good doctype articles in there. Among them is Activating the Right Layout Mode Using the Doctype Declaration from the Helsinki Univeristy of Technology. In there is a nice chart that shows how each browser handles each of your definitions. (You'll notice that NS/Mozilla is the most compatible with all doctypes with Opera coming in a close second).
G. |
||
| Offline | ![]() |
|
|
3 Pages 1 2 3 >
|
|
| Lo-Fi Version | Time is now: 9th February 2010 - 06:50 PM |
| Meet our Moderators: | cre8pc : projectphp : sanity : Black Phoenix : bwelford : EGOL : Ruud : rustybrick : AbleReach : swainzy : joedolson: eKstreme: dazzlindonna : SEOigloo: iamlost : RisaBB |