Specimen
Weights and styles
Every weight in the family, rendered live in Encode Sans Expanded from the Google Fonts CDN.
Thin · 100
Extra Light · 200
Light · 300
Regular · 400
Medium · 500
Semi Bold · 600
Bold · 700
Extra Bold · 800
Black · 900
CSS embed code
Drop the @import or <link> tag into the head of your document, then declare the family in your stylesheet.
CSS @import
/* Add to the top of your CSS file */
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+Expanded:wght@100;200;300;400;500;600;700;800;900&display=swap');
/* Then use the family */
body {
font-family: 'Encode Sans Expanded', sans-serif;
}
HTML <link>
<!-- Add inside <head> -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Encode+Sans+Expanded:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">