W3C home > Mailing lists > Public > www-html@w3.org > August 2002

Re: How about a <notice> element?

From: Jonas Jørgensen <jonasj@jonasj.dk>
Date: Thu, 20 Jun 2002 17:03:11 +0200
Message-ID: <3D11EEAF.8030003@jonasj.dk>
To: www-html@w3.org

Jonas Jørgensen wrote:
> I propose a <notice> element (or similar) for marking up small notices.

I have given this some more thought, and this is what I propose:

-------------------------

The 'notice' element contains an informational notice, an error message, 
or a warning.

Attributes:

'type' -- takes one of three values:
    'notice' (the default): An informational notice.
    'warning': A warning.
    'error': An error message.

Examples:

<notice type="warning">Are you sure you want to delete the file?</notice>

<notice type="error">The file could not be deleted.</notice>

<notice type="notice">The file has been deleted.</notice>

Visual user agents could render <notice type="notice"> with a green 
background and <notice type="error"> and <notice type="warning"> with a 
red background, and/or they could display an icon next to the notice (on 
the Windows platform, an "I" sign, an exclamation mark, and a red circle 
with a white X in it is typically used for these types of messages).

-------------------------

What do you think?

/Jonas
Received on Tuesday, 20 August 2002 11:03:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:52 GMT