Inline and block elements | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Inline and block elements

Can someone explain what inline and block elements are?

31st Jul 2020, 8:11 AM
Raj
Raj - avatar
1 ответ
+ 4
In short, A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can). An inline element does not start on a new line and it only takes up as much width as necessary.
31st Jul 2020, 8:16 AM
123