How can we change the font, size, text colour and background colour | SoloLearn: Learn to code for FREE!

+2

How can we change the font, size, text colour and background colour

3/2/2017 6:03:19 AM

Naval Jain

5 Answers

New Answer

+5

font-family, font-size, color, background-color

+3

@Raj Kumar Chaudan: <font> tag is deprecated in Html5: you MUST use Css to style your html elements ^^

0

I think in just font tag you can specify all font properties, no need to write separate font color, font size etc

0

oh yes! my bad ... I was thinking something else @visph. .Thank you

0

CSS is best way to style your font. use this property: font-family,font-size, color, background-color.... E.g-.class_name{ font-family: georgia, times, serif; font-size: 30px; color: black; background-color: grey;}