I am completely new to programming and have found myself struggling with website development. I can't seem to figure out why my text is not displaying in the custom font I want. It shows up as white italics instead. Any assistance would be greatly appreciated!
<html>
<head>
<title>Webpage</title>
<style>
@font-face
{
font-family: 'my font';
src: url(C:\Users\theuser\Font\My Custom Font.woff2) format('woff2'),
url(C:\Users\theuser\Font\My Custom Font.ttf) format('truetype');
}
h2
{
font-family: 'my font';
color: white;
font-style: italic;
}
</style>
<h2>Header text</h2>
</head>
<body>
<p style="color:white;">Font testing</p>
<body bgcolor="#000000">
</body>
</html>