Error correction [13/14]
CSS syntax is much easier than that of HTML, but it does not prevent us from making annoying mistakes. We have already dealt with mistakes in HTML; let’s have a look at the mistakes in CSS now.
Of course, the most frequent mistakes are typos in attribute and selector names.
Another common mistake is absence of
; in the list of CSS attributes. When a semicolon is missing after a “property-value” pair, the browser renders neither this rule, nor any following ones.
When the summary layout was almost over, coach Muffin like a furry comet sprang up to the computer and decided to play with the styles to make the summary prettier. It looked good, but this time coach Muffin was half asleep and made some typos that ruined some styles.
… which is great! You have a chance to practice in searching mistakes in CSS now!
1. Line 7.
2. Line 14.
3. Line 26.
Help coach Muffin correct the mistakes in the summary styles:
- First mistake with lost styles for all the paragraphs.
- Second mistake – absence of line through on the learned lessons.
- Third mistake of lost background in not learned yet lessons.