123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- ---
- title: Typography
- description: Typography plays an important role in creating an attractive and clear interface design. Good typography will make the content easy to follow and improve the usability of your website.
- bootstrapLink: content/typography/
- ---
- ## Headings
- Use HTML headings to organize content on your website and make the structure clear and user-friendly.
- ```html example vertical
- <h1>H1 Heading</h1>
- <h2>H2 Heading</h2>
- <h3>H3 Heading</h3>
- <h4>H4 Heading</h4>
- <h5>H5 Heading</h5>
- <h6>H6 Heading</h6>
- ```
- ```html
- <h1>H1 Heading</h1>
- <h2>H2 Heading</h2>
- <h3>H3 Heading</h3>
- <h4>H4 Heading</h4>
- <h5>H5 Heading</h5>
- <h6>H6 Heading</h6>
- ```
- ## Paragraphs
- Organize longer pieces of text into paragraphs using the `p` tag.
- ```html example vertical centered columns={2}
- <div>
- <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
- <p>At vero eos et accusam et justo duo dolores et ea rebum.</p>
- </div>
- ```
- ```html
- <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
- <p>At vero eos et accusam et justo duo dolores et ea rebum.</p>
- ```
- ## Semantic text elements
- Use a variety of semantic text elements, depending of how you want to display particular fragments of content.
- ```html example vertical separated columns={1}
- <div><abbr title="Internationalization">I1f8N</abbr></div>
- <div><strong>Bold</strong></div>
- <div><cite>Citation</cite></div>
- <div><code>Hello World!</code></div>
- <div><del>Deleted</del></div>
- <div><em>Emphasis</em></div>
- <div><i>Italic</i></div>
- <div><ins>Inserted</ins></div>
- <div><kbd>Ctrl + S</kbd></div>
- <div><mark>Highlighted</mark></div>
- <div><s>Strikethrough</s></div>
- <div><samp>Sample</samp></div>
- <div>Text <sub>Subscripted</sub></div>
- <div>Text <sup>Superscripted</sup></div>
- <div><time>20:00</time></div>
- <div><u>Underline</u></div>
- <div><var>x</var> = <var>y</var> + 2</div>
- ```
- ```html
- <abbr title="Internationalization">I18N</abbr>
- <strong>Bold</strong>
- <cite>Citation</cite>
- <code>Hello World!</code>
- <del>Deleted</del>
- <em>Emphasis</em>
- <i>Italic</i>
- <ins>Inserted</ins>
- <kbd>Ctrl + S</kbd>
- <mark>Highlighted</mark>
- <s>Strikethrough</s>
- <samp>Sample</samp>
- Text <sub>Subscripted</sub>
- Text <sup>Superscripted</sup>
- <time>20:00</time>
- <u>Underline</u>
- <var>x</var> = <var>y</var> + 2
- ```
- ## Horizontal rules
- Use the `hr` tag to represent a thematic break between paragraphs within one section.
- ```html example vertical centered columns={2}
- <div>
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A atque ex excepturi fuga magnam nam reiciendis velit. Amet eius eos eveniet fuga in ipsa, ipsum voluptatum. Dolorem expedita quibusdam veniam?</p>
- <hr />
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A atque ex excepturi fuga magnam nam reiciendis velit. Amet eius eos eveniet fuga in ipsa, ipsum voluptatum. Dolorem expedita quibusdam veniam?</p>
- </div>
- ```
- ```html
- <hr />
- ```
- ## Horizontal rules with label
- You can also add a label to a horizontal rule and align it as you see fit.
- ```html code example vertical centered columns={2}
- <p>
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
- </p>
- <div class="hr-text">
- <span>Rule text</span>
- </div>
- <p>
- At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
- </p>
- <div class="hr-text hr-text-center">
- <span>Rule text</span>
- </div>
- <p>
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
- </p>
- <div class="hr-text hr-text-end">
- <span>Rule text</span>
- </div>
- <p>
- At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
- </p>
- ```
- ## Optimized for different alphabets
- Tabler has been optimized to correctly display content in any language. It supports most Asian, African and Middle Eastern languages.
- ```html example vertical centered columns={2}
- <p>汉字</p>
- <p>日本語の表記体系</p>
- <p>한글</p>
- <p>Кириллица</p>
- <p>Eλληνική</p>
- <p>ქართული დამწერლობა</p>
- <p>Հայերենի այբուբեն</p>
- <p>الحروف العربية</p>
- <p>אלפבית עברי</p>
- <p>อักษรไทย</p>
- ```
- ```html
- <h5>Chinese</h5>
- <p>汉字</p>
- <h5>Japanese</h5>
- <p>日本語の表記体系</p>
- <h5>Korean</h5>
- <p>한글</p>
- <h5>Cyrillic</h5>
- <p>Кириллица</p>
- <h5>Greek</h5>
- <p>Eλληνική</p>
- <h5>Georgian</h5>
- <p>ქართული დამწერლობა</p>
- <h5>Armenian</h5>
- <p>Հայերենի այբուբեն</p>
- <h5>Arabic</h5>
- <p>الحروف العربية</p>
- <h5>Hebrew</h5>
- <p>אלפבית עברי</p>
- <h5>Thai</h5>
- <p>อักษรไทย</p>
- ```
- ## Text transform
- Transform the content of components with text capitalization classes.
- ```html example vertical
- <div class="text-lowercase">Lowercased text.</div>
- <div class="text-uppercase">Uppercased text.</div>
- <div class="text-capitalize">Capitalized text.</div>
- ```
- ```html
- <p class="text-lowercase">Lowercased text.</p>
- <p class="text-uppercase">Uppercased text.</p>
- <p class="text-capitalize">Capitalized text.</p>
- ```
- ## Letter spacing
- Control the tracking (letter spacing) of an element and make it tight, wide or normal.
- ```html example vertical
- <div class="tracking-tight">Lorem ipsum dolor sit amet. Tight letter spacing.</div>
- <div class="tracking-normal">Lorem ipsum dolor sit amet. Normal letter spacing.</div>
- <div class="tracking-wide">Lorem ipsum dolor sit amet. Wide letter spacing.</div>
- ```
- ```html
- <p class="tracking-tight">Lorem ipsum dolor sit amet. Tight letter spacing.</p>
- <p class="tracking-normal">Lorem ipsum dolor sit amet. Normal letter spacing.</p>
- <p class="tracking-wide">Lorem ipsum dolor sit amet. Wide letter spacing.</p>
- ```
- ## Line height
- Control the leading (line height) of an element.
- ```html example
- <div class="row">
- <div class="col">
- <div class="card">
- <div class="card-body">
- <div class="lh-1">Lorem ipsum dolor sit amet. Dolor sit amet.</div>
- </div>
- </div>
- </div>
- <div class="col">
- <div class="card">
- <div class="card-body">
- <div class="lh-sm">Lorem ipsum dolor sit amet. Dolor sit amet.</div>
- </div>
- </div>
- </div>
- <div class="col">
- <div class="card">
- <div class="card-body">
- <div class="lh-base">Lorem ipsum dolor sit amet. Dolor sit amet.</div>
- </div>
- </div>
- </div>
- <div class="col">
- <div class="card">
- <div class="card-body">
- <div class="lh-lg">Lorem ipsum dolor sit amet. Dolor sit amet.</div>
- </div>
- </div>
- </div>
- </div>
- ```
- ```html
- <p class="lh-1">Lorem ipsum dolor sit amet. Dolor sit amet.</p>
- <p class="lh-sm">Lorem ipsum dolor sit amet. Dolor sit amet.</p>
- <p class="lh-base">Lorem ipsum dolor sit amet. Dolor sit amet.</p>
- <p class="lh-lg">Lorem ipsum dolor sit amet. Dolor sit amet.</p>
- ```
- ## Antialiasing
- Control the font smoothing of an element.
- Use the `.antialiased` utility to render text using subpixel antialiasing or use the `.subpixel-antialiased` utility to remove antialiasing.
- ```html code example
- <div class="antialiased">Text with antialiasing</div>
- <div class="subpixel-antialiased">Text without antialiasing</div>
- ```
- ## Keyboard input
- Use the `<kbd>` to indicate input that is typically entered via keyboard.
- ```html example centered
- <div>
- To edit settings, press <kbd>ctrl</kbd> + <kbd>,</kbd> or <kbd>ctrl</kbd> + <kbd>C</kbd>.
- </div>
- ```
- ```html
- To edit settings, press <kbd>ctrl</kbd> + <kbd>,</kbd> or <kbd>ctrl</kbd> + <kbd>C</kbd>.
- ```
- ## Markdown elements
- If you can't use the CSS classes you want or if you just want to use HTML tags, use the `.markdown` class in a container. It can handle almost any HTML tag.
- ```html code example centered background="white" columns={2} height="30rem"
- <div class="markdown">
- <h1>Hello World</h1>
- <p>Lorem ipsum<sup>[1]</sup> dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub<sub>script</sub> works as well!</p>
- <h2>Second level</h2>
- <p>Curabitur accumsan turpis pharetra <strong>augue tincidunt</strong> blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.</p>
- <ul>
- <li>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</li>
- <li>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</li>
- <li>Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.</li>
- <li>Ut non enim metus.</li>
- </ul>
- </div>
- ```
|