Scripts | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Scripts

is it good to use 2 scripting languajes in the same html code? for example using PHP and also javascript

5th Nov 2016, 11:14 PM
Rodrigo Tallar
Rodrigo Tallar - avatar
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.
5th Nov 2016, 11:49 PM
Karolis Strazdas
Karolis Strazdas - avatar
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.
6th Nov 2016, 1:10 AM
Adam Gąsowski
Adam Gąsowski - avatar
0
It can be done but it is recommended to make separate php,JavaScript and HTML files for proper code maintenabce .
12th Nov 2016, 4:07 AM
Akshay Kamat
Akshay Kamat - avatar