Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/html/wp-settings.php on line 472 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/html/wp-settings.php on line 487 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/html/wp-settings.php on line 494 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/html/wp-settings.php on line 530 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/html/wp-includes/cache.php on line 103 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/html/wp-includes/query.php on line 21 Deprecated: Assigning the return value of new by reference is deprecated in /home/bahus/data/www/fixblog.ru/html/wp-includes/theme.php on line 623 Fix Blog - HTML Справочник » STRIKE

STRIKE

Тег STRIKE

Браузер Internet Explorer Netscape Opera Safari Mozilla Firefox
Версия 5.5 6.0 7.0 6.0 7.0 8.0 7.0 8.0 9.0 1.0 1.7 1.0 2.0
Поддерживается Да Да Да Да Да Да Да Да Да Да Да Да Да
HTML: 3.2 4 XHTML: 1.0 1.1

Описание

Тег <STRIKE> отображает текст как перечеркнутый. Этот
тег аналогичен тегу <S>, который имеет сокращенную
форму записи подобно тегам <B>, <I>
и <U>. В любом случае, теги <STRIKE>
и <S> осуждаются спецификацией HTML, взамен них рекомендуется
использовать стили.

Синтаксис

<s>Текст</s>
<strike>Текст</strike>

Закрывающий тег

Обязателен.

Параметры

Нет.

Аналог CSS

text-decoration: line-through

Пример 1. Использование тега <STRIKE>

Валидный код<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Тег STRIKE</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">

</head>
<body>

<p><b>Список должников</b></p>
<p><strike>Чебурашка</strike><br>

<strike>Крокодил Гена</strike><br>
Шапокляк</p>

</body>
</html>

Результат примера показан на рис. 1.

Рис. 1

Рис. 1. Вид текста, оформленного с помощью тега <STRIKE>

Filed under STRIKE