+ 2

In designing HTML backgrounds, between Java Script and CSS, which is most preferred? And why?

26th Feb 2018, 11:02 PM
Albert Amoo
Albert Amoo - avatar
4 Answers
+ 7
HTML and HTML5 is more visible to most browsers, CSS is second, and PHP is like third, and JAVAScript is somewhere down the list. I've used so many different browsers over the years and ran into these issues time and time again. Issues like this also depends on devices as well. example: opera for pc and opera for mobile and so and so forth.
27th Feb 2018, 5:16 AM
BroFar
BroFar - avatar
+ 6
I am not a web coder, but imo CSS had advanced a lot recently that I noticed web coder friends here utilizes CSS for animation effects, I guess when it comes to backward compatibility CSS is somewhat better, I'm using an aged device and can't view modern JS output without using a certain browser, but CSS works for my device, besides where JS is unsupported/disabled CSS wins hands down : )
27th Feb 2018, 2:56 AM
Ipang
27th Feb 2018, 5:34 AM
BroFar
BroFar - avatar
+ 3
if your intention is static background, CSS is preferred. however if you want the background to change depending on user input, JavaScript is a better option for dynamic output.
27th Feb 2018, 2:06 AM
Core i9
Core i9 - avatar