0

Can somebody explain block level and inline elements briefly?

17th Feb 2016, 6:40 AM
gaurav
4 Answers
+ 2
the difference is that the block tag automaticly the html make a new line after the block...when you write inline ...that make the contrary and make the tag after in the same line..
2nd Jun 2016, 10:37 PM
Osama Mrwat
Osama Mrwat - avatar
+ 1
Difference between inline and block level elements?? === This is a more detailed answer, I hope this helps. In brief, here are the basic conceptual differences between inline and block level elements: Content model- Generally, inline elements may contain only data and other inline elements. You can't put block elements inside inline elements. Formatting- By default, inline elements do not force a new line to begin in the document flow. Block elements, on the other hand, typically cause a line break to occur (although, as usual, this can be changed using CSS). the <div> element has a default CSS property that In this example, the <div> block-level element contains some text. Within that text is a <span> element, which is an inline element. Because the <span> element is inline, the paragraph correctly renders as a single, unbroken text flow. example of Block level elements : <div>, <form> <p> etc. example of Inline elements : <span>, <a>, <img> etc. Example 2: <p>You know, <span> you are Awesome</span></p>
30th Apr 2020, 2:05 AM
Moshiur Rahman Rony
Moshiur Rahman Rony - avatar
0
A block tag creates an element to be edited, an inline tag edits block tags. For example: <p>Hello <i>big</i>world</p >, where <p> is a block tag that makes a paragraph and <i> is an inline tag editing a part of that block
20th Mar 2016, 5:43 AM
Caine Kiewit
Caine Kiewit - avatar
0
yes
14th Aug 2016, 8:04 PM
Abo.ismael Saleem.shaik
Abo.ismael Saleem.shaik - avatar