html link font code example

Example 1: import font css

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
       url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
}

Example 2: how to link fonts css

@font-face {
  font-family: myFirstFont;
  src: url(sansation_light.woff);
}

div {
  font-family: myFirstFont;
}
/*Name the font-family and link the font file in the @font-face rule*/

Example 3: font tag html

Not Supported in HTML 5 | Support till HTML 4
<font color="red" face="Verdana, Geneva, sans-serif" size="+1">
  Your formatted text goes here
</font>

Example 4: html tag

<!--The font tag is no longer supported in HTML5, 
you have to have HTML4.
Not all of the tags are needed. You can use 1 or more of them
to change what the text looks like.-->

<font color="color" face="font family or font" size="size">
	Go to my account profile to invite my Discord Bot! :DDDDDD
</font>

Tags:

Css Example