+ 2
What is Block-leve and Inline?
3 Réponses
+ 2
Thanks.
+ 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.
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/