We haven't finish covering some common tags. Let's talk about the <title>, <p>, <pre>, <sup>,<sub> tag, and literals such as a hard space . See, the & has special meaning. You can do the © logo, or even Greek letter such as π. See here for a reference.
Now, we can continue with our <form>, the single most important addition of HTML I think. Without it all you see are formatted text with links.
I am tired of the javascript:alert(); so does the internet community. It is now to be used only occasionally for testing purpose only.
Enter the <div> tag, which simply denotes a block (a division) on your webpage you can give it a name and interact with it.
Now we are doing event-driven programming as opposed to traditional top-down approach like a recipe.
Next I am going to show you the function, which is like the most important concept of programming (and mathematics).
Let's rewrite the onclick above to use a function. Some programming language distinguish between procedure (subroutine) and function, and javascript just use the function.
Let's change that form above and create our own addition calculator.
No comments:
Post a Comment