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 all modern web browsers, such as Firefox, Google Chrome, UC, and so on.
The entire code that you will see is in HTML. You may also find a few lines with JavaScript. Therefore, in order to understand the structure of a web page (the code...