+ 1
Can we change the font style in html ...??
if yes than what are the different font style we use ex ,<h1 style ="font-family : ______?;">what are the different font which I can apply here..?<\h1> https://code.sololearn.com/WLs2fm9uYOrl/?ref=app
5 Answers
+ 5
You can use whatever source you have installed on your device, but keep in mind that if others do not have that source installed, they will see the default source that the browser uses.
A good option is to include google fonts:
https://medium.freecodecamp.org/how-to-use-google-fonts-in-your-next-web-design-project-e1ad48f1adfa
+ 2
It's because you're specifying another font. The purpose of Google Fonts is to offer a collection of sources that you can use on all devices, precisely to prevent your design from looking bad.
Since you imported the 'Spirax' typeface, you should put the code like this:
<h1 style = "background-color: yellow; font-family: 'Spirax', cursive;"> Hello </ h1>
+ 1
Reet
Look at your code on the PC, everything works.
0
It doesn't work .....
https://code.sololearn.com/WLs2fm9uYOrl/?ref=app
0
You do not need two style attributes in the same tag. We need to put it all together.