For html you would use tags and for css would it be <style> element to get the text you want? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

For html you would use tags and for css would it be <style> element to get the text you want?

13th Dec 2016, 6:12 AM
Skylet Vlue
Skylet Vlue - avatar
6 Antworten
+ 2
style is for writing css. make texts as done in html. whrrever in this example there will be class red it will have color red applied
13th Dec 2016, 6:25 AM
Sandeep Chatterjee
+ 1
Oh so you change the color in style... can you also change the font of the text?
13th Dec 2016, 6:24 AM
Skylet Vlue
Skylet Vlue - avatar
+ 1
I get it thank you!!
13th Dec 2016, 6:26 AM
Skylet Vlue
Skylet Vlue - avatar
+ 1
yes font is also changed use class is font here .font{ font-family: Aerial; }
13th Dec 2016, 6:29 AM
Sandeep Chatterjee
+ 1
<div class=red>the text you want styled</div><style> .red{ color: red; }</style>
13th Dec 2016, 6:29 AM
Sandeep Chatterjee
0
http://www.w3schools.com/ describes this in detail - without frightening any newbie! If you want to develop websites, then you'd better have a good reference by your side (as everyone does have, no matter level of skills), and that website is actually a gold-mine (? I lost the word, I'm no native English speaker, as you can see). Happy developing, or something, yeah.
13th Dec 2016, 6:31 AM
Anderz Lindberg
Anderz Lindberg - avatar