+ 3

I've got a problem.

https://code.sololearn.com/Wgc2GTDLz95J/?ref=app I can't upload the font to my HTML document. Can someone tell me what's wrong with it?

17th Mar 2018, 6:57 AM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar
5 Antworten
+ 6
Once the related css font-file is linked to your html, you must apply it to some element with css definition, either inlined (in 'style' htm attribute) or in external linked css file or in <style> html element (in code playground, it could be done in the css tab) trough the use of 'font-family' css property... targeting body will let most of your page content inherit the same font. (ie: form elements doesn't inherit font definition by default, so if you want to use a font on them, you have to target them specifically) inlined: <body style="font-family:Roboto;"> css defined: body { font-family:Roboto; } to target forms elements (it's possible that I forgot some^^): input, button, textarea { font-family:Roboto; }
17th Mar 2018, 7:30 AM
visph
visph - avatar
17th Mar 2018, 9:31 AM
☆Sampath👻
☆Sampath👻 - avatar
+ 3
Thanks everyone.
18th Mar 2018, 9:36 AM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar
+ 2
@Sampath: OP still right import google fonts ^^
17th Mar 2018, 9:33 AM
visph
visph - avatar
+ 2
:)
18th Mar 2018, 9:38 AM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar