← Back to Bootstrap Course | Chapter 3: Typography | Lesson 2 of 7

Display Headings क्या हैं

Display headings hero sections के लिए extra large, light headings हैं।

In this page:

  1. Display Headings
Syntax
markup
<h1 class="display-1">Title</h1>
<h1 class="display-6">Title</h1>

Display Headings

ordinary headings से अलग दिखने वाले oversized titles के लिए .display-1 से .display-6 इस्तेमाल करें। इनका weight h1 से lighter है और size बड़ा। ये short, impactful text के लिए हैं।

Note: display-1 छहों में सबसे बड़ा है।

उदाहरण: Display headings

markup
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="p-3">
<div class="container">
  <h1 class="display-1">Display 1</h1>
  <h1 class="display-4">Display 4</h1>
  <h1 class="display-6">Display 6</h1>
</div>
</body>
</html>
Live Example
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. body text के लिए display headings इस्तेमाल करना
  2. semantic heading tags skip करना
  3. एक page पर बहुत सारे इस्तेमाल करना
चैप्टर सारांश
  • display-1 से display-6
  • h1 से बड़े
  • Light font weight होता है
  • Hero text के लिए sparingly इस्तेमाल करें
🔒

Chapter Quiz — Complete all 7 topics to unlock

0/7 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.