我正在尝试更改我网站上的字体,但无论我尝试什么都行不通

I'm trying to change the font on my website, but no matter what I try it won't work

所以我试图更改显示文本的字体,但无论我做什么,它都只是保持默认字体。这是我当前的代码:

<p font style="font-family: Garamond; color:DarkCyan; font-size: 40px;">Cross Country 2019: Bedford Bulldogs</p>

字的颜色和大小没问题,就是字体没变。有什么想法吗?

没有使用 'font' 作为属性。如果尚未预安装这些字体,请确保您已导入这些字体。一个例子:

<p style="font-family: 'EB Garamond', serif; color: DarkCyan; font-size: 40px">

这些 Google 字体免费提供:

font-family: 'EB Garamond', serif;

font-family: 'Cormorant Garamond', serif;