Agyan
adda
Run
Reset
Copy
Bootstrap Tutorial › Bootstrap Typography › Typography classes
Back to tutorial
Code
Edit, then press Run or Ctrl+Enter
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"> <div class="container my-3"> <h1 class="display-4">Display heading</h1> <p class="lead">A lead paragraph stands out at the start of a section.</p> <p class="fw-bold">Bold text</p> <p class="fst-italic text-muted">Muted italic text</p> <p class="text-center text-uppercase">centred uppercase</p> <p>Use <mark>mark</mark> to highlight and <small>small</small> for fine print.</p> <p class="text-truncate border p-2" style="max-width: 260px;">This long sentence will be cut off with three dots at the end.</p> <ul class="list-inline"> <li class="list-inline-item">HTML</li> <li class="list-inline-item">CSS</li> <li class="list-inline-item">Bootstrap</li> </ul> </div>
Result