+ 1

What is inline elements and block element?

Give me a suitable answer

17th Aug 2017, 8:36 AM
mohit verma
mohit verma - avatar
2 Respostas
+ 10
Layman language A block elwment is a box. An inline element is blocks that can fit in a box. Use this analogy
17th Aug 2017, 9:02 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
A block-level element is an HTML element that begins a new line on a Web page and extends the full width of the available horizontal space of its parent element. It creates large blocks of content like paragraphs or page divisions. In fact, most HTML elements are block-level elements. Block-level elements are used within the HTML document's body. They can contain inline elements, as well as other block-level elements. An inline element has, but may not be limited to, the following characteristics: Flows along with text content, thus Will not clear previous content to drop to the next line like block elements Is subject to white-space settings in CSS. Will ignore top and bottom margin settings, but will apply left and right margins, and any padding Will ignore the width and height properties If floated left or right, will automatically become a block-level element, subject to all block characteristics Is subject to the vertical-align property
17th Aug 2017, 8:58 AM
Given
Given - avatar