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 Справочник » KBD

KBD

Тег KBD

Браузер 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

Описание

Тег <KBD> используется для обозначения текста,
который набирается на клавиатуре или для названия клавиш. Браузеры обычно помечают
текст в контейнере <KBD> моноширинным шрифтом.

Синтаксис

<kbd>Текст</kbd>

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

Обязателен.

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

Валидный код<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">

<title>Тег KBD</title>
<style type="text/css">

KBD {
font-weight: bold; /* Жирное начертание */

}
</style>
</head>
<body>

<p>Для быстрого закрашивания выделенной области цветом переднего плана
используйте

комбинацию клавиш <kbd>&lt;Alt&gt;+&lt;Backspace&gt;</kbd>
или <kbd>&lt;Alt&gt;+&lt;Delete&gt;</kbd>.

Для закрашивания выделенной области фоновым цветом воспользуйтесь комбинацией

<kbd>&lt;Ctrl&gt;+&lt;Backspace&gt;</kbd> или
<kbd>&lt;Ctrl&gt;+&lt;Delete&gt;</kbd>.</p>

</body>
</html>

Результат данного примера показан ниже.

Рис. 1

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

Filed under KBD