Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 22nd, 2006, 06:40 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default DOCTYPE for XHTML 1.1 complaince

I have this code at the start of my ASP pages on my site (crmpicco.co.uk) I am looking to make the site W3 compliant with respect to XHMTL 1.1. Is that the code i require at the top of the pages???

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Picco


www.crmpicco.co.uk
www.ie7.com
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
Reply With Quote
  #2 (permalink)  
Old June 22nd, 2006, 08:58 AM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

There's no point in even attempting to be XHTML 1.1 compliant. XHTML 1.1 *requires* the MIME type to be application/xhtml+xml, and since the market leader, Internet Explorer, does not support this MIME type there is no way to be XHTML 1.1 compliant.

XHTML 1.0 can be sent as text/html or application/xhtml+xml. Some people argue that it's pointless to write XHTML compliant sites until IE supports both the XML prolog (when preceding an XHTML DOCTYPE and while retaining standards compliant rendering mode), and the application/xhtml+xml MIME type. Basically, XHTML is designed to do away with legacy tag soup HTML and enforce strict syntax, whereas XML may exist in an HTML world.

http://www.hixie.ch/advocacy/xhtml

Those of us that know what we're doing can send the XHTML MIME type to browsers that support it, and text/html to browsers that don't, but going that route you risk the possibility of the XML YSOD (Yellow Screen of Death). The YSOD occurs when a browser refuses to display a document because the XML markup within it is not well-formed.

http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=394

As to making your documents compliant with any markup language... we've told you countless times to take your documents to the validator... http://validator.w3.org, and others have instructed you to STFW! I know that I'm just talking to a brick wall at this point, because you seem to be too thick to take this advice, but some self-initiated research and experimentation will take you further than relying on someone else to hold your hand and explain everything to you. You'll have more self-respect, and your peers will respect you more when you heed this advice.


Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
  #3 (permalink)  
Old June 22nd, 2006, 02:36 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

It was about time somebody said that!!

The problem with crmpicco is that he completely ignores tips like this. He doesn't even respond to these kind of posts with a "yeah, I see your point", or "yeah, I know but I did STFW but I couldn't find what I need". He just completely ignores you, only to come back again the next day with the same STFW question.... I think he's afraid to explain why he does what he does.

Maybe it's time we should should start ignoring too..... ;)

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
  #4 (permalink)  
Old June 22nd, 2006, 04:07 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I'll entertain his questions from time to time, if for nothing else than for the people that come searching later. I do come across P2P links in Google from time to time while researching, and come up with posts where no one's responded. Why punish those people for sponges like picco? I think he's more fixated with his post count than whether or not he actually contributes anything to the community. I may or may not respond to his questions, but that doesn't mean I have any respect for him as a programmer. I think in this case that finely tuned skills of research and experimentation will continue to be a secret shared by us real hackers. ;)

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
  #5 (permalink)  
Old June 23rd, 2006, 01:47 PM
Authorized User
 
Join Date: Jun 2003
Location: Richmond, VA, USA.
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to erobb Send a message via Yahoo to erobb
Default

Golf clap... Well said

Earl

Reply With Quote
  #6 (permalink)  
Old June 25th, 2006, 01:06 PM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

ah, well, sorry if i have offended anyone - truly. When i signed up to this forum I liked the look of it and felt it would be good to contribute to it to help it grow. my way of doing this is by posting questions. then, as has been said, someone will do a google and find the answer to it and get pointed to P2P Wrox instead of CodingForums or WebDeveloper.

Anyway, sorry :-(

www.crmpicco.co.uk
www.ie7.com
Reply With Quote
  #7 (permalink)  
Old June 25th, 2006, 02:19 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

It seems you've missed the point again, picco. Posting pointless questions of no value is not contributing to the community. You waste everyone's time when you do that, and you make yourself look like a lazy sponge. The best possible way that you could contribute to the community is to take the initiative to learn on your own, and then share that knowledge with people that come here looking for help. Have you ever seen Imar post pointless inquiries about topics that he could learn a wealth of knowledge about had he spent all of sixty seconds on Google? No. Imar contributes by sharing his extensive knowledge of the technologies he is expert in. There are plenty of n00b questions already. If you have a question, research it, then if you feel compelled to share your research, then post what you've learned. Do you see the difference with that approach? You answer your own question, and contribute in a way that doesn't make you a sponge. Starting a new thread on P2P doesn't come with the requirement that the first post in the thread be a question. It comes with the requirement that the post be on topic for the forum you are posting to. And that isn't an invitation for more "What's your favorite browser?" posts, BTW, those are equally annoying and pointless. No one cares what your favorite browser is. If you want a new browser or FTP client, or whatever, then STFW! You want to see a constructive example of *sharing* your knowledge, then look at all the how-to articles on Imar's website, or look at a site like http://www.quirksmode.org

That's not to say that asking a question is a bad thing, that is, after all, why we volunteer our time here. But there is a difference between being a lazy sponge, and genuinely needing help; We've spent enough time on P2P and other forums to know the difference.

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
  #8 (permalink)  
Old June 26th, 2006, 12:35 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Yeah, I agree with Rich. If "building up an archive with useful questions" would have been your goal, you would have said that 736 questions ago, right after the second or third time I asked you whether you were familiar with an invention called Google.

Had you said then what you said now, we could have said that there *is* already such an archive, again freely accessible through Google. If everyone asked the same question over and over agin, just to build up an archive of questions, noone would use that archive and we would end up in an infinite loop of asking too familiar questions. If you can't Google yourself, how do you expect others to do so??

Oh well. I guess this is enough. We all know how you operate and think now.....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
  #9 (permalink)  
Old June 27th, 2006, 09:36 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

honestly Imar I am sorry - i didnt realise I was offending anyone. please accept my apologies both of you. from now one I'll be careful with my questioning :-)

www.crmpicco.co.uk
www.ie7.com
Reply With Quote
  #10 (permalink)  
Old June 27th, 2006, 01:31 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Good. Let's hope that works.

I just did a quick search here on P2P and I found at least 6 or 7 threads from me, asking you to use Google before you make a post here. I am sure many others did the same. I hope that's more than enough now.

Google is your friend....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Include DOCTYPE declaration Pankaj C XSLT 6 October 18th, 2007 08:46 AM
Copying DOCTYPE madanshah16 XSLT 1 August 18th, 2007 12:23 PM
XHTML with Doctype disables Drag and Drop bradrice BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 December 16th, 2006 08:55 AM
Why to use <!Doctype...? rupen HTML Code Clinic 2 October 25th, 2005 04:55 AM
doctype 4.01 anshul HTML Code Clinic 3 December 28th, 2004 06:24 AM



All times are GMT -4. The time now is 08:35 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.