After learning html and css, should i learn Php or JavaScript for backend web development? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

After learning html and css, should i learn Php or JavaScript for backend web development?

I'm gonna learn both eventually as it stands, but i wanna learn the one best paired with html and css first... or whichever one is easier to learn...

10th Jun 2018, 3:48 AM
Marquise Miranda
Marquise Miranda - avatar
8 Answers
+ 23
actually backend can be written in more or less any language. PHP is specifically designed for it, Python has a number of frameworks to help, NodeJS (Javascript) is quite well suited for the task as well, C# has MVC, Ruby has Rails.... However given that you are a beginner and need to learn JS anyway for your frontend I would recommend that you use NodeJS+Express for backend in the beginning, because that saves you from having to learn a brand new language for the task. If you don't like it you can always switch at a later stage ๐Ÿ˜€
10th Jun 2018, 7:55 AM
Nikolay Nachev
Nikolay Nachev - avatar
+ 6
PHP is pretty good, but so is JS. It depends on what ypu want to do with web. Would you mind sharing so that my advice can be more concise?
10th Jun 2018, 3:50 AM
๐Ÿ‘‘ Prometheus ๐Ÿ‡ธ๐Ÿ‡ฌ
๐Ÿ‘‘ Prometheus ๐Ÿ‡ธ๐Ÿ‡ฌ - avatar
+ 6
it's up to you JS, Ruby, Java or others if you are just learning for fun...but surely php and mysql in terms of business..i say it business or for your living..God bless
10th Jun 2018, 6:44 PM
Andrew Ting Mai Zau
Andrew Ting Mai Zau - avatar
+ 5
You can use JavaScript to get form response too.
10th Jun 2018, 3:58 AM
๐Ÿ‘‘ Prometheus ๐Ÿ‡ธ๐Ÿ‡ฌ
๐Ÿ‘‘ Prometheus ๐Ÿ‡ธ๐Ÿ‡ฌ - avatar
+ 2
Pegasus i thought of the question after completing lesson 15 of html. it said you needed backend knowledge to setup a destination for submitted <form> data
10th Jun 2018, 3:58 AM
Marquise Miranda
Marquise Miranda - avatar
+ 1
Pegasus Ok, thanks! I'd also like to ask what backend language you'd think would be better for building websites (like basic company websites) that are mobile friendly?
10th Jun 2018, 4:04 AM
Marquise Miranda
Marquise Miranda - avatar
+ 1
Learn NodeJs
11th Jun 2018, 2:40 AM
Signore Ankit
Signore Ankit - avatar
+ 1
thanks for all the replies! i think I'll go JavaScript and then php all the other language will just be ones I'll pick up later
11th Jun 2018, 3:13 AM
Marquise Miranda
Marquise Miranda - avatar