Kizam
Beta member
- Messages
- 4
- Location
- New Zealand
Hey. I have a small webpage project to do and want to use a custom font. I have the font file saved in a fonts folder that's stored in the same location as my html project but the text (h1.top) wont change. Please help me find the right way so I can move on.
<!--IT Support Website-->
<html>
<head>
<title>IT Support</title>
<style>
@font-face {
font-family: AlphaRuler;
src: url(Fonts\AlphaRuler.otf);
}
h1.top {
font-family: AlphaRuler;
}
</style>
</head>
<body>
<h1 class="top">IT Support</h1>
</body>
</html>
<!--IT Support Website-->
<html>
<head>
<title>IT Support</title>
<style>
@font-face {
font-family: AlphaRuler;
src: url(Fonts\AlphaRuler.otf);
}
h1.top {
font-family: AlphaRuler;
}
</style>
</head>
<body>
<h1 class="top">IT Support</h1>
</body>
</html>