THE ARTICLE IS ACCEPTED BY THE HABRA COMMUNITY AS A DISINFORMATION AND IS NOT RECOMMENDED FOR READING!
Waiting for easy profit
The first mistake is economic. If you came to the front end with the goal of earning more than your boss allows, I will immediately disappoint you, you can no longer read. Demand for landings, layout and turnkey business cards on exchanges is really big, but the offer is high. Instead of 8 hours of work in the office, during which you perform the work assigned to you, you will have to spend most of the day on an independent search for this work. Keep in mind that most employers are willing to cooperate only if you provide them with order-related examples from your portfolio, which means that the first month you are guaranteed to work for shisha, because you must first collect this portfolio, catching every chance to work for free. And even with him dozens of freelancers like you will respond to the same project with you. Among them there will be very experienced layout designers who will complete half of the order immediately and provide as a demo version, and only beginners who, like you, will once offer to complete everything for free. Most likely, the employer will choose one of these two legions, and the rest will have to sit for several hours to no avail at the monitor, pressing F5. The situation can be compared with the market of lawyers in the CIS - once they were torn off with their hands, as soon as they go beyond the threshold of the alma mater, but now the offer far exceeds demand. At the same time, freelance differs from working in jurisprudence in increased danger: if you do not have your own private entrepreneur, the money you earned on freelance can be considered illegal under the law, and then you will definitely regret it, that they didn’t stay in that cozy office where you could do your favorite thing 8 hours a day and get a white salary for it. If I still have not convinced you, we will move on to the following errors.
Scatter code on different files
Enumeration with classes and identifiers
Tutorials advise adding class and identifier attributes to all elements on the page so that they can be easily selected with CSS selectors. This is good advice, to a certain extent. When I was just starting to study typesetting, everything was just strewn with classes for me . This is mistake. I will give an example.
This is the code I wrote when I was new to the web. Now consider all the errors. Firstly, in the ToR it is not indicated to colorize the navigation tabs in different colors and it is not planned to indicate it, and therefore all tab identifiers are just wasting the load on the site user’s processor. Feel free to clean. Secondly, all elements of the "topnav" class are elements
and invested in
, moreover, an element
may contain only elements
therefore our class “topnav” is identical to the selector “#topnav li”. Erase the topnav classes. And thirdly, in the TOR the only navigation bar is indicated, which means that there should be only one element on the entire page