Chapter 5. The Basics of HTML

The browser-based JavaScript console that we’ve been using so far is great for trying out small snippets of code, but in order to create actual programs, we’ll need something a bit more flexible, like a web page with some JavaScript in it. In this chapter, we’ll learn how to create a basic HTML web page.

HTML (HyperText Markup Language) is the language used to make web pages. The word HyperText refers to text that is connected by hyperlinks, the links on a web page. A markup language is used to annotate documents so that they’re not just plaintext. The markup tells software (like a web browser) how to display the text and what to do with it.

In this chapter, I’ll show you how to write HTML documents in a text editor ...

Get JavaScript for Kids now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.