Questions on css // вопросы по css | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Questions on css // вопросы по css

Questions on css 1. why formatting should be removed from the html document 2. The main advantage of CSS is that it allows you to separate the style from the content. ((why divide the style from the content?)) 3.CSS allows you to apply specific styles to specific HTML elements. ((what does this mean? Why use specific styles for specific HTML elements.)) Вопросы по css 1.зачем форматирование нужно убирать из html документа 2.Основным преимуществом CSS является то, что он позволяет разделять стиль от содержимого. ((зачем разделять стиль от содержимого?)) 3.CSS позволяет вам применять специфические стили к специфическим HTML элементам. ((что это значит? какие еще специфические стили? зачем применять специфические стили к специфическим HTML элементам.))

29th Jul 2018, 9:34 AM
MakarovDs
3 Answers
+ 18
1. To keep your html clean. In large HTML pages, this becomes a problem if, in addition to HTML tags, there are also styles. It's hard to read. This also applies to Javascript. It's better to keep everything in separate files. 2. Again, to make it easier to read and edit both styles and content. 3. Example: There is a specific <ul> element (unordered list). It has specific styles. For example, list-style-type. Its values are: circle, disc, square. 1. Чтобы держать вёрстку чистой. В больших HTML страницах это становится проблемой, если помимо HTML тегов там прописаны ещё и стили. Получается сложночитаемый код. Это касается ещё и Javascript. Лучше всё держать в отдельных файлах. 2. Опять же, чтобы было проще читать и редактировать и стили и содержимое. 3. Пример: Есть специфичный элемент <ul> (маркированный список). Для него есть специфические стили. Например, list-style-type. Его значения: circle - Маркер в виде кружка. disc - Маркер в виде точки. square - Маркер в виде квадрата.
29th Jul 2018, 9:45 AM
Igor Makarsky
Igor Makarsky - avatar
+ 16
31st Jul 2018, 9:58 PM
Igor Makarsky
Igor Makarsky - avatar
+ 4
Igor Makarsky how can we translate your answer? only able to translate the question..
30th Jul 2018, 11:03 AM
niteOwLTwO
niteOwLTwO - avatar