A Quick Introduction to HTML

At the very top of our code is the following HTML:

​ <body></body>

HTML is the Hypertext Markup Language. HTML is not a programming language. So what’s it doing messing up our beautiful JavaScript code?

It’s used to build web pages, but it doesn’t make web pages do interesting things. Doing interesting things on web pages is why JavaScript got invented.

Even though it’s not a programming language, we still need HTML. Since JavaScript is a web programming language, we need a web page where we can program—even if it is just a simple page.

The first line contains <body> tags. Instead of price tags or names tags, HTML tags describe things that are useful on the web. Most HTML tags, like <body>, come in pairs. ...

Get 3D Game Programming for Kids, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.