Jump to content

Recommended Posts

Posted

I'm finding precious little with google. My question is it better to have no document description (e.g. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">) than none at all. If I put none "tidy html" or the firefox "check html" will tell me that this a serious error.

If there is no DTD do the browsers go direct to Quirk mode? Is that a bad thing? Worse than a DTD with errors?

I have some pages that contain rss feeds, and javascript from 3rd party. They both show lots of errors in the rss feed and java.

My opinion is this whole CSS the push to separate content from presentation will evaporate as computers get faster. If google can spider the entire internet in a week, what does it matter if it has to search thru some extra code.

Thanks in advance

Posted
I'm finding precious little with google. My question is it better to have no document description (e.g. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">) than none at all. If I put none "tidy html" or the firefox "check html" will tell me that this a serious error.

If there is no DTD do the browsers go direct to Quirk mode? Is that a bad thing? Worse than a DTD with errors?

I have some pages that contain rss feeds, and javascript from 3rd party. They both show lots of errors in the rss feed and java.

My opinion is this whole CSS the push to separate content from presentation will evaporate as computers get faster. If google can spider the entire internet in a week, what does it matter if it has to search thru some extra code.

Thanks in advance

Neither. The whole idea of the DTD is so that a browser can display your webpage the way you designed it. Thats all. Always have a valid DTD here is the list http://www.w3.org/TR/html4/sgml/dtd.html . If you dont ref the document template some browsers can go into quirks mode.

If there is no DTD do the browsers go direct to Quirk mode:

Some may some may not, newer browsers may be fine, may not. Why take the chance - if you spend time on a site why throw it all away when somebody comes along that does not use the same screen size, op system, browser etc as you did when you designed the site.

Is that a bad thing? (quirks mode): YES YES YES And YES

OK there are two ways a modern browser can run. Standards mode or quirks mode. Standards mode is what you want a browser to run in, this mode has less bugs it will display the pages the way you designed them. Quirks mode is for backwards compatability. If a browser cannot understand your code using standards mode it reverts to a less "tight" mode and tries to figure out what your code is meant to look like. This is not what you want because invariably the webpage will get screwed up. To check whether you are in stadards or quirks mode you can access the DOM on the browser you are using. Just type the following javascript into the address bar: java script:m=(document.compatMode=='CSS1Compat')?'Standards':'Quirks';window.alert('You%20are%20in%20'%20+%20m%20+%20'%20mode.');

I have some pages that contain rss feeds, and javascript from 3rd party. They both show lots of errors in the rss feed and java.

Bin the java to a file and ref it on page - try to never have javascript raw on a page it messes with all sorts of stuff. Not sure how you take the feeds in so difficult to comment.

My opinion is this whole CSS the push to separate content from presentation will evaporate as computers get faster. If google can spider the entire internet in a week, what does it matter if it has to search thru some extra code.

Fine, but I think its more about consistent presentation and making the web more accessable than google crawling the web. If google can code spiders that drink up tag soup then there is no need to push for webstandards.

Posted

forgot to add google's homepage displays in quirks mode for some countries so i doubt the drive for standards is coming from them

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.



×
×
  • Create New...