+ 3
Scripts
is it good to use 2 scripting languajes in the same html code? for example using PHP and also javascript
3 Answers
0
Well, that's how many websites are built. PHP used for back-end(functionality and stuff like that), and JS is used for front-end things like animations, transitions, in other words, appearance of the website which you can't achieve only with CSS.
0
PHP is server side scripting, its generating HTML, CSS, JS, media, etc... HTML is client side website structure modeling, and also JS and CSS is for power, dynamic modeling webside, also its standard in modern websides. You should use it.
0
It can be done but it is recommended to make separate php,JavaScript and HTML files for proper code maintenabce .