This is an HTML/CSS exercise based on Google HTML/CSS Style Guide. It consists in finding the listed "errors" in the given code:
-
Use only lowercase: 3 occurrences.
-
Use UTF-8 (no BOM): 1 occurrence.
-
Use valid HTML where possible: 1 occurrence.
-
Use HTML according to its purpose: 2 occurrences.
-
Provide alternative contents for multimedia: 3 occurrences.
-
Separate structure from presentation from behavior: 4 occurrences.
-
Do not use entity references: 2 occurrences.
-
Omit type attributes for style sheets and scripts: 2 occurrences.
-
Use a new line for every block, list, or table element, and indent every such child element: 1 occurrence.
-
When quoting attributes values, use double quotation marks: 5 occurrences.
-
Use ID and class names that are as short as possible but as long as necessary: 1 occurrence.
-
Avoid qualifying ID and class names with type selectors: 7 occurrences.
-
Omit unit specification after “0” values: 1 occurrence.
-
Use 3 character hexadecimal notation where possible: 11 occurrences.
-
Use a semicolon after every declaration: 5 occurrences.
-
Use a space after a property name’s colon: 2 occurrences.
-
Use a space between the last selector and the declaration block: 3 occurrences.
-
Separate rules by new lines: 5 occurrences.
-
Use single quotation marks for attribute selectors and property values: 1 occurrence.
Note that fixing this code styling errors shoult not change the rendering of the web page.