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.

Html Code Checker Says My Doctype Is No Good

Featured Replies

I use MSFT Front Page. I've been doing web pages for 13 years so am a bit stuck in old style - though I've dabbled with .css code recently - and don't like it.

The default for FrontPage 2003 is <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

but that's probably already out-dated - does that qualify as DOCTYPE?,

I found a an html checking site which appears to be very good. w3.org

and although my web pages show up, the checker results tell me I'm using the wrong DOCTYPE. Here's what I'm currently using:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

I guess my question boils down to: what DOCTYPE is appropriate for older style html which uses such now-archaic terms such as 'BODY BACKGROUND' ?

If someone wants to look at my html, here's a sample page, sabaibooks dot com / contact dot htm

thanks

There is nothing wrong with your DOCTYPE.

The validation errors are because of invalid HTML - even by old standards. BGCOLOR used to be part of the standard for the TD element (it's now deprecated), but BACKGROUND never was part of the standard. (BACKGROUND can be used with the TABLE element, though.)

Incidentally, you are specifying some very specific fonts in your HTML - fonts which aren't available on a large proportion of computers. Your site will look very different on different computers.

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.