font family Open Sans code example
Example 1: open sans css
/* copy paste it in your .css file*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap");
/* copy paste it in your .html or .php file*/
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap" rel="stylesheet" type="text/css">
Example 2: sans serif font family css
<style>
.sansserif {
font-family: Arial, Helvetica, sans-serif;
}
</style>
Example 3: font family Open Sans
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,300" rel="stylesheet" type="text/css">