Re: [VE][64] Error Message Feedback

* Mogens H Andersson wrote:
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
><META content="MSHTML 6.00.2800.1458" name=GENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY bgColor=#ffffff>
><DIV>&nbsp;</DIV></BODY></HTML>

Your <style> element needs a type attribute, e.g.

  <style type="text/css">
  ...

but you might also consider to remove it. Then the bgcolor attribute
value needs to be in quote marks like

  <body bgcolor="#ffffff">

you might also specify a color keyword for the color, e.g.

  <body bgcolor="white">

in which case, in HTML (not XHTML), you may omit the quote marks

  <body bgcolor=white>

but note that you should also specify a text color to avoid a clash with
user or browser defaults

  <body text=black bgcolor=white>

the same for link colors,

  <body alink=red vlink=purple link=blue text=black bgcolor=white>

but you should consider to replace these attributes with a style sheet

  <style type="text/css">
    body { background-color: white }
    /* ... */
  </style>

I leave this as an exercise. It might also be good to avoid to specify
this presentation so the user gets the colors he likes best. However,
quoting the bgcolor attribute value and removing the <style> element
should already satisfy the Validator, so this might be of less concern.

Good luck with your project!

Received on Monday, 23 August 2004 07:15:53 UTC