Can i style JavaScript output? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuesta
+ 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