Bootstrap: Быстрое создание современных сайтов
Шрифт:
<p class = «text-success»> This content carries a success class
<p class = «text-info»> This content carries a info class
<p class =
<p class = «text-danger»> This content carries a danger class
<p class=«bg-primary»> This text is important.
<p class=«bg-success»> This text indicates success.
<p class=«bg-info»> This text represents some information.
<p class=«bg-warning»> This text represents a warning.
<p class=«bg-danger»> This text represents danger.
Тег <abbr> обеспечивает подчеркивание текста пунктирной линией, при этом класс class=«initialism» слегка уменьшает шрифт:
<abbr title = «World Wide Web»> WWW </abbr>
Тег <blockquote> выделяет текст как цитируемый, при этом класс class=«blockquote-reverse» выравнивает по правому краю:
This is a default blockquote example. This is a default blockquote example.
<blockquote>
This is a default blockquote example. This is a default blockquote example.
</blockquote>
<blockquote class=«blockquote-reverse»>
This is a default blockquote example. This is a default blockquote example.
</blockquote>
Тег <mark> подсвечивает текст:
Use the mark element to <mark> highlight </mark> text.
Элементы <dl>, <dt> и <dd> обеспечивают разметку словаря:
<dl>
<dt> Coffee </dt>
<dd> black hot drink </dd>
<dt> Milk </dt>
<dd> white cold drink </dd>
</dl>
При
этом класс class=«dl-horizontal» выводит ключ-значение в одну строку:<dl class=«dl-horizontal»>
<dt> Coffee </dt>
<dd> black hot drink </dd>
<dt> Milk </dt>
<dd> white cold drink </dd>
</dl>
Тег <code> выделяет текст цветом:
HTML elements: <code> span </code>, <code> section </code>, and <code> div </code>.
Тег <kbd> меняет фон и цвет текста:
Use <kbd> ctrl + p </kbd> to open the Print dialog box.
Тег <pre> меняет фон текста, сохраняя пробелы и переносы:
<pre>
Text in a pre
element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks.
</pre>
При этом класс class=«pre-scrollable» устанавливает максимальную высоту 350px и добавляет прокрутку.
Класс class=«list-unstyled» удаляет маркировку и отступы списка:
<ul class=«list-unstyled»>
<li> Coffee </li>
<li> Tea
<ul>
<li> Black tea </li>
<li> Green tea </li>
</ul>
</li>
<li> Milk </li>
</ul>
Класс class=«list-inline» выводит список в одну строку:
<ul class=«list-inline»>
<li> Coffee </li>
<li> Tea </li>
<li> Milk </li>
</ul>
Теги <del> и <s> перечеркивают текст:
Use the s element to indicate <s> text that is no longer relevant </s>.
Use the del element to indicate <del> deleted text </del>.
Теги <u> и <ins> подчеркивают текст:
Use the u element to indicate <u> underlined text </u>.
Use the ins element to indicate <ins> inserted text </ins>.
Тег <samp> меняет шрифт, имитируя вывод программы:
To indicate sample output from a computer program, use the samp element:
<samp> This text is output from a computer program… </samp>