Answer in Web Application for Aman Jaiswal #159716
October 24th, 2022
Difference b/w inline and block element
A block element always takes up all of the available space within their parent container and add a line-break after the element (in other words, the next block element starts from the new line). An inline element does not start on a new line and only takes up as much width as necessary. Also, a block element has a top and a bottom margin while an inline element does not.