How do I use Google Fonts in a HTML page

好久不见. 提交于 2019-12-01 06:04:01

问题


I have seen people use Google Fonts within their websites. How do I use Google Fonts within my website? I am using normal fonts such as Arial and Verdana but i want to use Source Sans Pro and Ubuntu fonts as well. What do I do?


回答1:


Visit Google Fonts, choose the fonts you want and add the CSS or JavaScript code within your website (depending on what you choose).




回答2:


1)go to https://www.google.com/fonts#

2) search the font names in the box on top left corner

3) click on add to collection

4) click use

5) select the font weights

6) copy the link tag populated below that and insert it into the <head> section of your website

Hope this helps

Take care and happy coding



来源:https://stackoverflow.com/questions/36974624/how-do-i-use-google-fonts-in-a-html-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!