+ 1

How to add different font style on the text in the html code????????

when I had tried to use the face attribute in font tag for different faces and check the output there was no change in the text. It was as it is....there were no change....then I thought that there would be any mistake in my code so I copy it in my PC and tried.......and it works...but not in sololearn....why....????

2nd Nov 2018, 5:42 PM
Hasrat Wadsariya
Hasrat Wadsariya - avatar
5 odpowiedzi
+ 3
Okay, like AL Araf mentioned, the face attribute is no longer supported in HTML5. So either replace it by style="font-family: cooper black" or do the same in CSS.
3rd Nov 2018, 7:58 AM
Kishalaya Saha
Kishalaya Saha - avatar
+ 2
You have to remember that the <font> tag with face attribute isn't supported in HTML5!! It might be a reason!! You can use <p style= "font-family: cursive;">SoloLearn</p>!!
3rd Nov 2018, 12:52 AM
AL Araf
AL Araf - avatar
+ 1
Hi Hasrat Wadsariya Could you please share your code, so we can see what's wrong?
2nd Nov 2018, 6:44 PM
Kishalaya Saha
Kishalaya Saha - avatar
+ 1
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body bgcolor="#fe2167"> <font color="#eda70f" face="cooper black" size="7">THIS IS WHERE I cannot see any change in my text </font> <h1>so what do you say about it kishalaya saha</h1> </body> </html>
3rd Nov 2018, 7:50 AM
Hasrat Wadsariya
Hasrat Wadsariya - avatar
+ 1
ok thanks a lot to both of you!!!!!
3rd Nov 2018, 7:59 AM
Hasrat Wadsariya
Hasrat Wadsariya - avatar