The idea of modern web development is to use classes that have corresponding styles in a css file. Even though the course goes the idea of using styles directly with the element, this really isn't used anymore unless circumstances require this.
The main reason why we do this is when you have a website with 100s of divs, images, and text, this would be too time-consuming. If you wanted to change the font color span from blue to green, you have to do it for each one. Whereas with a class, you would have to change it once in the CSS file and it would covert 100s of them over.
https://github.com/Kelliebrew/prj-rev-bwfs-dasmoto/blob/702d73c6c7ae8411624e8903e1e8cb4543c4700e/Dasmoto's%20Arts%20%26%20Crafts/index.html#L12
https://github.com/Kelliebrew/prj-rev-bwfs-dasmoto/blob/702d73c6c7ae8411624e8903e1e8cb4543c4700e/Dasmoto's%20Arts%20%26%20Crafts/index.html#L20
The idea of modern web development is to use classes that have corresponding styles in a css file. Even though the course goes the idea of using styles directly with the element, this really isn't used anymore unless circumstances require this.
The main reason why we do this is when you have a website with 100s of divs, images, and text, this would be too time-consuming. If you wanted to change the font color span from blue to green, you have to do it for each one. Whereas with a class, you would have to change it once in the CSS file and it would covert 100s of them over.