Ad 2

ads

Typography

0

Typography


  • Headings


  • All HTML headings, <h1> through <h6>, are available. .h1 through .h6 classes are also available, for when you want to match the font styling of a heading but still want your text to be displayed inline.

    h1. Bootstrap heading

    Semibold 36px

    h2. Bootstrap heading

    Semibold 30px

    h3. Bootstrap heading

    Semibold 24px

    h4. Bootstrap heading

    Semibold 18px
    h5. Bootstrap heading
    Semibold 14px
    h6. Bootstrap heading
    Semibold 12px
    Copy
    <h1>h1. Bootstrap heading</h1>
    <h2>h2. Bootstrap heading</h2>
    <h3>h3. Bootstrap heading</h3>
    <h4>h4. Bootstrap heading</h4>
    <h5>h5. Bootstrap heading</h5>
    <h6>h6. Bootstrap heading</h6>
    
    Create lighter, secondary text in any heading with a generic <small> tag or the .small class.

    h1. Bootstrap heading Secondary text

    h2. Bootstrap heading Secondary text

    h3. Bootstrap heading Secondary text

    h4. Bootstrap heading Secondary text

    h5. Bootstrap heading Secondary text
    h6. Bootstrap heading Secondary text
    Copy
    <h1>h1. Bootstrap heading <small>Secondary text</small></h1>
    <h2>h2. Bootstrap heading <small>Secondary text</small></h2>
    <h3>h3. Bootstrap heading <small>Secondary text</small></h3>
    <h4>h4. Bootstrap heading <small>Secondary text</small></h4>
    <h5>h5. Bootstrap heading <small>Secondary text</small></h5>
    <h6>h6. Bootstrap heading <small>Secondary text</small></h6>

  • Transformation classes


  • Transform text in components with text capitalization classes.
    Lowercased text.
    Uppercased text.
    Capitalized text.
    Copy
    <p class="text-lowercase">Lowercased text.</p>
        <p class="text-uppercase">Uppercased text.</p>
        <p class="text-capitalize">Capitalized text.</p>

  • Abbreviations


  • Stylized implementation of HTML's <abbr> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a title attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover and to users of assistive technologies.
    An abbreviation of the word attribute is attr.
    Copy
    <abbr title="attribute">attr</abbr>

  • Blockquotes


  • For quoting blocks of content from another source within your document.
    Default blockquote
    Wrap <blockquote> around any HTML as the quote. For straight quotes, we recommend a <p>.
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
    Copy
        <blockquote>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
        </blockquote>
    Blockquote options
    Style and content changes for simple variations on a standard <blockquote>.
    Naming a source
    Add a <footer> for identifying the source. Wrap the name of the source work in <cite>.
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

    Someone famous in Source Title
    Copy
        <blockquote>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
          <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
        </blockquote>
    Alternate displays
    Add .blockquote-reverse for a blockquote with right-aligned content.
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

    Someone famous in Source Title
    Copy
        <blockquote class="blockquote-reverse">
          ...
        </blockquote>

    Code


  • Inline


  • Wrap inline snippets of code with <code>.
    For example, <section> should be wrapped as inline.
    Copy
    For example, <code>&lt;section&gt;</code> should be wrapped as inline.

  • User input


  • Use the <kbd> to indicate input that is typically entered via keyboard.
    To switch directories, type cd followed by the name of the directory.
    To edit settings, press ctrl + ,
    Copy
    To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
    To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>

  • Basic block


  • Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.
    <p>Sample text here...</p>
    Copy
    <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
    You may optionally add the .pre-scrollable class, which will set a max-height of 350px and provide a y-axis scrollbar.

  • Variables


  • For indicating variables use the <var> tag.
    y = mx + b
    Copy
    <var>y</var> = <var>m</var><var>x</var> + <var>b</var>

    Ad 3

    ads