Summary
This chapter covered a lot of ground, including the following topics:
??? HTML and why semantics are important
??? CSS, the importance of inheritance, specificity, and a few troubleshooting tips
??? Coverage of some of the JavaScript basics
??? The DOM, how to access elements and attributes, how to add new content into the
DOM, and event handling
In the next chapter, you??™ll jump into object-oriented concepts and techniques with
JavaScript. This builds on much of what you??™ve seen here, explains some of the different techniques
used so far, and goes into some more advanced JavaScript. You??™ll see some techniques
that have really gained popularity because of many of the JavaScript frameworks that are
available.
CHAPTER 2 n HTML, CSS, AND JAVASCRIPT 56
Object-Oriented Programming
Chapter 2 covered a lot of ground, and this chapter builds on that information. I??™ll explain
what object-oriented programming (OOP) is, and you??™ll learn how and why to do it with
JavaScript. I??™ll also cover some advanced techniques for code management that can make
your code more powerful and more flexible.
What Is Object-Oriented Programming?
In the last chapter, you learned what objects are in JavaScript and how to give these objects
methods and properties. Object-oriented programming, often referred to as OOP, is a term
that describes a number of programming concepts. Languages such as Java and C# are OOP
at their core, and there??™s no way to avoid it.
Pages:
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110