custom font for your html




The below tutorial will teach you how to add custom fonts to your html
1-download your font and place it next to your html files.
2-write the below html (you can name index.html) [suppose the fort file is b.otf]
<html>
<head><title>Me Website Title</title>
<style>
@font-face {
  font-family: b;
  src: url('b.otf');
}
body {
  font-family: b;
}
</style>
<head>
<body>
<b>Hi I'm the new font</b>
</body>
</html>
3-you must see the new font now.




Comments

Popular Posts