-
[STYLES] - Get used to style all elements using classes. And don't increase selectors specificity unless completely necessary
-
[STYLES] - if you have two or more similar elements with portions of similar styles with different values - use one of the elements as the basic case, and override necessary styles for other cases.
-
[CODE STYLE] - Keep your code line length below 80. It’s not only historical tradition, but also allows your code to fit into one standard screen without horizontal scroll.
-
[CODE STYLE] - Remember about correct indentation between parent and child elements. Each level of nesting, including text, contained inside the element, requires 2-space offset.
-
[CODE STYLE] - If the HTML-element has long attribute values or number of attributes is more than 3 - start each one, including the first, on the new line with 2-space indentation related to tag. Tag’s closing bracket should be on the same level as opening one.
-
[CODE STYLE] - Use camelCase for values of name attribute - they should be valid as JavaScript object keys. It should not contain spaces, “-” or other special characters.
-
[FUNCTIONALITY] - You need to use a label tag for each input, so that every input could be activated by clicking on the corresponding label.
-
[TESTS] - Remember to style input placeholders correctly
-
[TESTS] - Remember that the search-bar should have width: 100% on any screen.
-
[TESTS] - Remember, each search bar should be located in separate form element.