0
Can somebody explain block level and inline elements briefly?
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..
+ 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>
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
0
yes