display-2

bootstrap5.css

bootstrap5.css
.display-2 {
  font-size: calc(1.575rem + 3.9vw);
  font-weight: 300;
  line-height: 1.2;
}
bootstrap5.css
@media (min-width: 1200px) {
  .display-2 {
    font-size: 4.5rem;
  }
}

html bootstrap5 Sample

displayで文字の大きさを変える:display-*


h3(標準)

h3.display-1/font-size:6rem/font-weight:300

h3.display-2

h3.display-3

h3.display-4

h3.display-5

h3.display-6

  <h3>h3(標準)</h3>
  <!-- 高さも変わる、h1よりさらに大きい -->
  <h3 class="display-1">h3.display-1/font-size:6rem/font-weight:300</h3>
  <h3 class="display-2">h3.display-2</h3>
  <h3 class="display-3">h3.display-3</h3>
  <h3 class="display-4">h3.display-4</h3>
  <h3 class="display-5">h3.display-5</h3>
  <h3 class="display-6">h3.display-6</h3>