Can i style JavaScript output? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 6

Can i style JavaScript output?

x= sonday document.write(x); output " sonday"

23rd Jul 2018, 4:23 PM
Omar Khalil Bakhsh
Omar Khalil Bakhsh - avatar
1 Antwort
+ 2
Yes, you can. document.write() just adds text to your HTML page, so you can style it by using HTML and CSS, but in my opinion, it is easier to use jQuery to add elements to your page.
23rd Jul 2018, 6:55 PM
Moritz Vogel
Moritz Vogel - avatar