Summary
We started this chapter with the basics of HTML. We learned that HTML consists of elements and that these elements can contain other elements. Elements have a tag that specifies the type of element they are and they can have attributes that alter the element or add some metadata to the element. These attributes can be used by JavaScript.
We then had a look at the BOM, which represents the window of the browser that is being used for the web page and contains other objects, such as the history
, location
, navigator
, and document
objects. The document
object is referred to as the DOM, which is what you are most likely to be working with. The document contains the HTML elements of the web page.
We also started to consider how we can select document elements and use these to manipulate the web page. This is what we'll continue exploring in the next chapter!
Join our book’s Discord space
Join the book’s Discord workspace for a monthly Ask me Anything...