Chapter 3. Introducing HTML and CSS

You have already learned about JavaScript syntax, arithmetic operators, and comment in the previous chapter. We used console for these purposes. Now, how about you learn something interesting, which will pave the way for you to be a good JavaScript programmer? In this chapter, we are going to study about the HyperText Markup Language (HTML) syntax, Cascading Style Sheets (CSS) syntax, and how to use JavaScript in an HTML page.

HTML is the source code of a web page. All the web pages that you load on your web browser are built with HTML. Go to any website (for example, https://www.google.com) and press Ctrl + U (on Mac, click command + U) on your keyboard, you will get the web page's source code. This works on ...

Get JavaScript Projects for Kids 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.