Answers for "html font website"

0

use font on website html

<style type="text/css">
@font-face {
    font-family: "My Custom Font";
    src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}
p.customfont { 
    font-family: "My Custom Font", Verdana, Tahoma;
}
</style>
<p class="customfont">Hello world!</p>
Posted by: Guest on October-05-2020
0

cool html fonts

<html>
  <body>
    <p>You can use google fonts. There are many fonts available.</p>
    Select the font you want to use. Copy the code to use it.
    You can import it with HTML or CSS
    Paste it in your website.
    Apply styles to it. Example: 

    <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=STIX+Two+Math&display=swap" rel="stylesheet">
    <style>
      p {
      font-family: 'STIX Two Math', serif;
      }
      /* import font in css */
      
      @import url('https://fonts.googleapis.com/css2?family=STIX+Two+Math&display=swap');
    </style> 
  </body>
</html>
Posted by: Guest on July-08-2021

Browse Popular Code Answers by Language