⬆️ ⬇️

Standards HTML and Yandex.

When applying for a job in one web studio. Asked to do a test task:



The user enters a random URL. PHP script reads the page at this address and displays its HTML code. In this case, all tags are tinted in red, and attributes in blue.



The script was written, but when I started testing it using the example of ya.ru, I was amazed by the HTML code that is present on this page.

')

Here are some excerpts from it:



<link rel="shortcut icon"href="http://img.yandex.net/i/favicon.ico">

<a href="http://mail.yandex.ru"onclick="c(this,17,1080)">

<a href="http://www.artlebedev.ru"onclick="c(this,17,1084)">





Looks like Yandex was so carried away with the optimization of the weight of the code that they forgot to put spaces between the attributes. Well, the fact that some of the attributes without "about it and useless to say ...

Source: https://habr.com/ru/post/48055/



All Articles