+ 8
How do you apply certain programing languages?
So far I learned HTML, and CSS. I want to make websites and I heard that you PHP and JavaScript (and possibly jQuery and python). As of now I finishing up JavaScript however while I'm getting it...I don't understand how I'll apply this to anything. Is there somewhere online where I could learn how to actually apply languages like JavaScript, I get how to apply html and CSS but I don't understand the relevance of JavaScript or how it'll work in making website (or anything else).
19 Respostas
+ 17
I can give a real world example how these web stuffs works ...
think you are building an house ..
to build a house structure is required that foundation (base) is HTML (structure of the website). You built structure and construed full building, then comes the appearance. That is how house should looks example (choosing painting, shapes) that is CSS. JavaScript is like a electric switch in Ur home if u turn on the switch lights get turn on, and you can even change the colour of lights by turning on next switch.. it's like controlling the DOM objects in HTML. CSS can also be controlled using JavaScript. To control this objects you need to write tons of code(JavaScript) so it kills time, mind. To overcome these problems jQuery(a JavaScript library) is introduced. By calling a single function you can do magic with out writing thousands line of JavaScript code .
+ 11
https://www.w3schools.com/ is best for html css javascript bootstrap php jquery ajax and http://php.net/ is best for php.
+ 10
There are tons of web codes in Code Playground that you may refer to as to how programming languages are applied to execute algorithms to solve problems.
Also: https://www.quora.com/What-is-the-purpose-of-JavaScript
+ 5
https://www.freecodecamp.org
this site will help u most!
+ 5
wow... I'm learning a lot here! making mental notes.
+ 4
HTML and CCS works the visual of your Web page. Javascript is the brain of your Web application. You can use javascript to write code to solve problems and make you application smart for the users.
+ 4
Javascript is going to be most of what you need unless you're needing to store data. At the end of the day HTML and CSS are just for presentation of existing data, rather than number crunching to make data. Javascript is going to be used to create data that doesn't exist to be displayed by HTML. Whether that be drawing, retrieving a message from another computer, etc.. The imagination is up to you.
PHP can be used for basic non-server scripts, but not much point when Javascript exists. It's used for taking processing off of the user and putting it on the server host since that's where it's compiled and parsed. Mostly made for processing and storing data via a server. (Which means you need at least a local server for it to be tested. Not as simple as loading up an HTML file in a browser)
Python can be used in conjunction with the web libraries Django or Flask, but I'm only dealing with them because I know python very well, and I don't think it serves much of a higher purpose than Javascript apart from Python's extensive libraries. Javascript was designed for webpages, while Python was not and has extra hoops to jump through with those libraries.
+ 4
HTML is for the page structure
CSS is for designing the page
JavaScript is to make the page interactive
SQL is to create databases to store your web data
+ 3
HTML = skeleton, it takes all other front-end (=executed by the client) links such as :
CSS = style
JavaScript = intelligence
with those three languages you make a static webpage, which, can have intelligence and is distribued by the server.
But what if you want your web page to be dynamic ? you must code the back-end to give different webpage depending on the user behaviour, ex : not the same webpage to an admin, a registered user and a guest.
Here comes back-end ( Java, PHP, Python, Node )
First, try to make static, then, learn back-end if you want a full understanding I suggest you to read about web structure, web integration
+ 1
javascript can be used in the html page as a script tag to make behavioral changes to the html dom
+ 1
php can be used on html pages that end in .php and use an open and close tags of <?php ?> respectively
+ 1
PHP runs on the server while JavaScript is usually run on the client's machine/side.
+ 1
I had done the html course here and what I have found is low explanation of the form object that could add information for what you are after.
Forms have some methods such as post and get I won't go into them but what they do is sending the information to your server for doing stuff like retrieving info and/or inserting info, etc, using sql, usually.
If you had learned sql and if not let's say I want to sign up to a website but the password or any other information is required I can use JavaScript to validate that all forms are done as I wish.
Another example let's say you have a user that wants to sign in but we have an exploiter who uses sqli (sql injection) and types in the correct user and then "'if 1==1;--"
And he is signs in. All of those is how JavaScript can help you prevent people doing these stuff or helping you handling information on your server side.
Any how another thing you wanted to know is handling the information on your server. You ca use asp.net/php etc as a server side programming language and why you wanted to know these? Let's say I have a website where unsigned users won't be able to see my site, with the server side I can control who sees the site using session, implementing restricted urls or getting information that was delivered in my forms using the previous methods I mentioned - post and get-.
Hope this was helpful
+ 1
you can learn these from free code camp buddy i'm currently learning jquery from there it helps.
+ 1
If you want to have a dynamic website you can use javascript and php to make your admin panel to manage your site, and you can use CMS like wordpress, joomla and sth like this. But if you want to make a static websites php is not useful for you and you can just use html , css and js.
Jquery is just a library of javascript!
+ 1
<p> etc</p>
+ 1
You can download some apps from play store like code sheet or JavaScript programs which present you a lot of examples and codes about a large variety of JavaScript programs.
0
i am totally confused with there question
0
Ive learned html