Display Headings क्या हैं
Display headings hero sections के लिए extra large, light headings हैं।
In this page:
Syntax
<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
<!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. #}
आम गलतियां
- body text के लिए display headings इस्तेमाल करना
- semantic heading tags skip करना
- एक 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: