Great job! You learned how to organize HTML with classes, IDs, and divs.
Let's review what you've learned so far:
- Code is a lot more readable when it is organized using IDs, classes, and divs.
- IDs label HTML elements that are unique to the web page (an element that appears only once).
- Classes label elements that will share the same styling. They make styling more efficient.
<div> groups elements together. It makes the HTML file easier to read by organizing the web page into logical sections.
- HTML elements can be labeled with multiple classes.
- Divs are one of the most commonly used HTML elements. Understanding how they are used is a critical skill for web developers.
In this unit, you learned how to organize code with IDs, classes, and divs. The remainder of this course will use these concepts extensively, so it's important to have a strong understanding of them.