+ 6
I am trying to code a blog but i haven't understand how to get the different fonts from Google or other places.
I have finished basic HTML course. I haven't started html5 though! but I don't how to get those background images and different fonts from Google. I tried to get url from Google's site but didn't work.
7 odpowiedzi
+ 7
I got it. thanks
+ 6
but can I use that url in notepad? as a programming platform?
+ 6
thnx guys
+ 3
Simply take the link provided by google and place it in the head section of your html markup. for example,
<link href="https://fonts.googleapis.com/css?family=Roboto:400,100,300" rel="stylesheet" type="text/css">
Then you could attach a font-family to a css style, could be a specific H1 or P tag or the whole body.
font-family: 'Roboto', sans-serif;
Regarding the question about background images. Im not sure what you mean, could you expand?
+ 3
Not sure what you mean by using it in notepad? You can write your code in any application or IDE you want and then run the page in the browser. The fonts will work even if its local.
+ 3
You can try this