The font sizes for the heading tags are located in the $font-sizes
map. We use the math.pow()
Sass function to generate the scale which looks like the following:
$font-sizes: (
h1: math.pow($font-size-ratio, 4) * $font-size-base,
h2: math.pow($font-size-ratio, 3) * $font-size-base,
h3: math.pow($font-size-ratio, 2) * $font-size-base,
h4: math.pow($font-size-ratio, 1) * $font-size-base,
h5: $font-size-base,
h6: $font-size-base
);
<h1>h1: The quick brown fox jumps over the lazy dog</h1>
<h2>h2: The quick brown fox jumps over the lazy dog</h2>
<h3>h3: The quick brown fox jumps over the lazy dog</h3>
<h4>h4: The quick brown fox jumps over the lazy dog</h4>
<h5>h5: The quick brown fox jumps over the lazy dog</h5>
<h6>h6: The quick brown fox jumps over the lazy dog</h6>
To access any of the $font-sizes
map sizes, you can use the font-size()
function that allows you also to create responsive font sizing. The function utilizes the clamp()
CSS function to set a minimum, optimal and maximum value.
Mauris sit amet ipsum eget orci congue egestas a eu ipsum. Mauris porttitor tincidunt ligula at finibus. Vestibulum feugiat semper aliquet.
<p>Mauris sit amet ipsum eget orci congue egestas a eu ipsum. Mauris porttitor tincidunt ligula at finibus. Vestibulum feugiat semper aliquet.</p>
You can create paragraphs with bigger font-size using the lead
class.
Mauris sit amet ipsum eget orci congue egestas a eu ipsum. Mauris porttitor tincidunt ligula at finibus. Vestibulum feugiat semper aliquet.
<p class="lead">Mauris sit amet ipsum eget orci congue egestas a eu ipsum. Mauris porttitor tincidunt ligula at finibus. Vestibulum feugiat semper aliquet.</p>
You can use a blockquote
element with citation:
<figure class="quote">
<blockquote>“Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.”</blockquote>
<figcaption>— Albert Einstein,
<cite><a href="https://quoteinvestigator.com/2010/05/04/universe-einstein/">Quote Investigator</a></cite>
</figcaption>
</figure>
or without citation:
“Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.”
<blockquote>
<p>“Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.”</p>
</blockquote>
code element
code
abbr
mark
del
s
ins
u
small
strong
b
em
cite
sup
sub
<code>code element</code>
<abbr title="Accessibility">A11Y</abbr>
<mark>mark element</mark>
<del>del element</del>
<s>strikethrough element</s>
<ins>ins element</ins>
<u>u element</u>
<small>small element</small>
<strong>strong element</strong>
<em>em element</em>
<cite>cite element</cite>
sup <sup>element</sup>
sub <sub>element</sub>
<!-- Unordered list -->
<ul>
<li>Milk</li>
<li> Cheese
<ul>
<li>Blue cheese</li>
<li>Feta</li>
</ul>
</li>
</ul>
<!-- Ordered list -->
<ol>
<li>Alpha</li>
<li>Beta</li>
<li>Gamma</li>
<li>Delta</li>
</ol>
<!-- Definition list -->
<dl>
<dt>Chrome</dt>
<dd>
Nulla accumsan elit ac libero mattis malesuada id sed lorem. Aliquam at commodo dui.
</dd>
<dt>Firefox</dt>
<dd>
Morbi fermentum varius arcu, in hendrerit turpis. Ut vestibulum nibh sed lorem blandit, ac ultrices arcu dictum.
</dd>
</dl>