Re: Fw: [VE][65] Error Message Feedback

On Sun, 28 Nov 2004, Mike Capps wrote:

> <td><font size="3" face="Americana" color="#000080"><dl>
- -
> The mentioned element is not allowed to appear in the context in which
> you've placed it;

Isn't the explanation pretty clear? The <dl> element is not permitted in
the content of a <font> element.

> there needs a way to keep the font attributes inside this  list.

What makes you think so? You can pollute the content of your <dt>
and <dl> elements with <font> markup, if you wish to dig yourself deeper
in a hole. Beware that if <dl> contains any block elements, you need to
repeat <font> inside each of them, to satisfy validity requirements, since
<font> content must be text and text-level markup only.

There's a different way, and it means using CSS for presentation, and
probably also getting rid of <table> for non-tabular data and
of <dl> for non-definition lists. Validation will become much easier.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Sunday, 28 November 2004 18:49:45 UTC