In intro to CSS chapter 1, why they used divs instead of sections as i learned in semantic html previous chapter ? that html considered not as semantic, right?

You are absolutely right. As you get to know more and more code, you’ll realize that the use of <div> is widespread and predominant. In a perfect world when HTML5 introduced semantic tags every website and every developer would’ve adopted them right away. In practice, it is quite difficult, time consuming and even impractical to change entire codebases for it.

Bottom line: get used to seeing semantic and non-semantic HTML because it’s everywhere :sweat_smile:


Thanks for reply :blush: