Leticia has some details on your code that you need to fix.
The first is that you need to declare the Font Family name inside quotation marks in .div02
.div02 {
font-family: "Bebas Neue"; /* repare o nome entre aspas */
}
Now about the @font-face
in the local declaration () you did not put the source extension, in your case .eot
and also had left a space between one word and another repair "Bebas Neue" / "BebasNeue".
@font-face {
font-family: 'Bebas Neue';
src: local('BebasNeue.eot'),
url('BebasNeue.eot') format('eot');
font-style: normal;
font-weight: normal;
}
Finally, make sure that your source that is on your server really is in .EOT format, if it is .TTF and you are declaring .EOT it will not be loaded. You can check this in Chrome DevTools on the Network > Font
tab and see if the font has been downloaded.
You can make a fallback if the .EOT
format is not found by placing two different font formats in the CSS. See below how it is. OBS: The browser will always try to find the source that is declared before, ie from top to bottom.
@font-face {
font-family: "Bebas Neue";
src: url("BebasNeue.eot") format("eot"),
url("BebasNeue.ttf") format("ttf");
}
Article that can help you link