+ 2

What is Block-leve and Inline?

12th Feb 2017, 7:32 AM
Ruth
Ruth - avatar
3 ответов
+ 2
Thanks.
12th Feb 2017, 4:30 PM
Ruth
Ruth - avatar
+ 1
From another context, they were formerly the only content models in HTML. They gave a definition as to how elements would be created. Block elements usually start on a new line, that is, with a line break. Examples are div, p, table etc. Inline elements continue on the same line. Examples are span, i, b etc.
12th Feb 2017, 2:35 PM
John Afolayan
0
"Block" and "Inline" are both display properties. Depending on which one you chose, the positioning of elements using this CSS property will change. Have a look at this article for a more detailed description: https://css-tricks.com/almanac/properties/d/display/
12th Feb 2017, 9:30 AM
Codest4r
Codest4r - avatar