Why am I unable to change the font type and size in a paragraph using inline style in an HTML document with the Anwriter app? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why am I unable to change the font type and size in a paragraph using inline style in an HTML document with the Anwriter app?

I made it in Anwriter app but it doesn't make any change <p class="cursive">Any text</p> then I ran it in sololearn app but doesn't work

19th Jan 2017, 1:28 AM
Oscar Geovanny Bonilla Cruz
Oscar Geovanny Bonilla Cruz - avatar
3 Answers
+ 4
<p style="font-family: cursive"> Who told you about class="cursive"?
19th Jan 2017, 1:44 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 4
If you do <p class="cursive">, it means that the class of that p element is "cursive". In CSS, you can do, .cursive {font-weight: bold; font-family: cursive}
19th Jan 2017, 2:01 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
0
sololearn told me, I'm studying CSS sololearn course and that is what it says, unless the example meant internal style and I was confused about that. Thank you for your help
19th Jan 2017, 1:59 AM
Oscar Geovanny Bonilla Cruz
Oscar Geovanny Bonilla Cruz - avatar