What are the differences between JSP, PHP, HTML5 and javascript?

I am currently involved in computer science and engineering. In most classes, we usually deal with C or C ++, so I'm new to web programming. I just got the job of making a webpage using DB2. Since I don't know anything about web programming, I need to learn one of the web programming languages, and JSP, PHP, HTML5 and javascript are the ones I've heard about. Can someone tell me what the differences are?

I was thinking about learning JSP because I was going to learn JAVA anyway. Can you advise which one should I study?

Thank you very much in advance:)

+6
source share
4 answers

JSP and PHP are web programming languages. They are mainly used as scene logic. All if-else , variable , for each , etc. Everyone is coming here.

When JSP / PHP is displayed, this is when HTML is called. HTML is what you view on a website. Right-click and select a view source on any web page, the source code you see is HTML.

Javascript is basically an interface, it is like interacting with what the user sees.

To create a website, you need to know HTML at a minimum. Knowing only HTML can only lead to static websites without logic, but using a web programming language that works with source code, you can do more, such as registering users, etc.

To complete your project, you need JSP / PHP and HTML. Javascript is not needed.

I recommend you use PHP as it is more widely supported, with rich documentation, easy setup, and the likelihood that your questions will answer questions faster in StackOverflow .;) Take this chance to learn a new language.

+8
source

You will need to learn HTML, JavaScript, CSS and HTML no matter what server-side programming language you use.

So you definitely need to know:

  • HTML / XHTML / HTML5
  • Javascript
  • CSS

Now, to generate this combination of MARKUP (HTML), JavaScript, or CSS, you need a server-side programming language or scripting language such as PHP or JavaEE (JSP). So, select one server-side website programming language / scripting language and start learning web programming. I would also choose JSP if you would still learn Java.

There is also a lot easier to learn / use server side scripting language, which you can consider:

  • Python (using WebFramework like DJANGO, Web2PY, Tornado).
  • Ruby (with its stelar WebFramework Rails)
  • ASP.NET/ASP.NET MVC (if you want to follow the Microsoft path)

And many others. They all have their weaknesses and strengths, but they are also very good. They will definitely make you do your job.

One tip, IMHO: if you want to learn web programming, start with something simple. Stay away from overly complex Java Web infrastructures such as JSF or many more.

+6
source

You should learn HTML , CSS first (these are not programming languages), then you can learn Javascript and finally PHP . I can not advise you to learn JSP yourself (I tried it once myself, and I failed because I had some problems with understanding)

+1
source

You will also find so many links to textbooks in these languages ​​on the Internet.

But for the base, I prefer the W3School site.

+1
source

Source: https://habr.com/ru/post/901605/


All Articles