Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dtd Better None Or Wrong Type?

Featured Replies

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

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.

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.