Originally Posted by Xon
teach me how to send virus,hack friends' computers,can? LOLx.
wtheck,my physics teacher asked me to learn html to come to programming. he led me wrongly that time. wasted my time and i seem to jumping from the foundation. @.@
Nope. No virus for you
.. seriously when the first thing you want to learn in a new field is a bad thing, your intention is distorted already. You won't last long
.. (the same with wanting to learn bad words in a foreign language)
HTML ... is not really programming. I'd say HTML is just a designing language to design a web page. It lacks many important concepts in programming:
The concept of values and variables
I'd say 50% or so of programming is about handling values and variables. You perform operations on values, assign them to variables, pass them around all over the system (memories, screen, speaker, operating system etc). You don't have that in HTML.
The concept of code or instruction lines
When you write a program, at least in the traditional one (i.e. screw visual programming, because in the end the visual programming tool generates instruction lines for you)
, you write lines of codes. Each line carries instruction for the central processing unit (CPU) to perform. HTML doesn't have this, but it has hierarchal structure instead.
The concept of execution flow, branching and looping
What makes programming useful is that it allows branching and looping, meaning you can repeat the same block of codes a few time, then jump to a different part of the codes and latter return to the block of code, etc. Unlike in HTML where you have to copy paste the HTML tags to repeat something, in programming all you need to do is put the code in a loop construct and the CPU will repeat the instructions during runtime.
The concept of functions and modularity
Also a very useful concept, where you can group a set of code lines into a block separate from the execution flow (meaning the block will not be executed when the program is ran unless you specifically ask the CPU to execute the block, or "call the function" as commonly known) that you can invoked anywhere else to have the code lines executed. (Function is different from looping because while looping requires the code to be located within the execution flow, function can be located anywhere)
The concept of input and output
Programming allows accepting user input, process it then output to an output device. You can't do much in HTML other than the output to the browser and collecting user input in forms. You can't process inputs using HTML.