Thanks for your feedback, and sorry for the delay (I’ve been out for a couple of weeks).
I tried to do everything inline, that’s why the style attribute. However, if I had done it with an external css I would have had a similar problem with the class attribute since I use a different color for every word, wouldn’t I?
Concerning the unclosed ul element. That’s right I didn’t know the nested list should be inside the li element of the list in which it is nested. Thanks a lot! Even I didn’t know about HTML inspectors, that helped me too. Thanks!
Hi, that line of code is only an example of the style attribute in your code, the problem is this:
When you use the style atribute I need to check every element (to know if that element has a style rule). For example, if there are 6 h1 elements I need to check the 6 (all of them).
But, when you use an external file I only need to check one rule, for example:
h1 {
font-size: 35px;
}
Now I know that every h1 has font-size of 35px . Is easier.
You also can use a “css lint” in codepen (analyze CSS):