Tsallaka zuwa abun ciki
Justice Tech School

Font Weight, Style and Variant

font-weight accepts 100 to 900, normal and bold. font-style makes italics. font-variant: small-caps shows small capitals.

Example
<style>
.w { font-weight: 800 } .i { font-style: italic } .c { font-variant: small-caps }
</style>
<p class="w">Heavy</p><p class="i">Italic</p><p class="c">Small caps</p>

Exercise

Bold with numbers.

font-weight: ;

Quiz Test

Which number means bold?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.