Learning HTML 3.2 by Examples, section 5 Descriptions of HTML 3.2 tags:

STRIKE - strike-through text (Not in HTML 2.0!)

Purpose

To present strike-through text.

Typical rendering

Strike-through, i.e. with a horizontal line through the middle of the text. See general notes on rendering markup.

Basic syntax

<STRIKE>text</STRIKE>

Possible attributes

None.

Allowed context

Text container, i.e. any element that may contain text elements. This includes most HTML elements. In particular, text elements can be nested.

Contents

Text elements. Notice that this disallows e.g. paragraph breaks.

Examples

Excerpt from a bill, where strikeout is used to indicate proposed deletion of text:

Example STRIKE-1.html:

"Private agency" means an accredited nonpublic school,
a nonprofit institution of higher education
<STRIKE>eligible for tuition grants</STRIKE>, or a hospital.


Notes

In HTML 4.0, the STRIKE element is deprecated .

STRIKE is defined as "font style element", i.e. physical markup. The HTML specification does not say what the meaning should be. Typically text is striked out to indicate that a text segment belongs to the original version of a text but has been deleted later.

If you use STRIKE in your document, it is advisable to include a note about its meaning. Even if you use it for the "normal" meaning, indicating deletion, you should tell this to your readers, since some of them might view the document with browsers which do not support STRIKE at all (and display text within STRIKE elements as normal text). You might even provide a way of getting different versions of the document, with STRIKE replaced by some other method of presenting deleted text.

See general notes on text markup, which provide additional examples.

The HTML 2.0 specification does not include STRIKE but mentions it as an element which has been "deployed to some extent".

The HTML 3.2 Reference Specification warns that 'STRIKE may be phased out in favor of the more concise "S" tag from HTML 3.0'.



Date of last update: 2010-12-16.
This page belongs to the free information site IT and communication, section Web authoring and surfing, by Jukka "Yucca" Korpela.