Computer Science, asked by sahiln484, 1 year ago

Difference between block level elements and inline elements

Answers

Answered by Meghana311350
0
Block-Level and Inline Elements: Thedifference between <div> and <span> ... In summary, a <span> element is used as an inline element and a <div>element as a block level element. Thedifference between the two elementsis a commonly misunderstood concept of web design but it does not have to be!

sahiln484: i want brief about these
Answered by Anonymous
0

Answer:

BLOCK LEVEL ELEMENTS :-Block level elements always starts on a new line and takes up full width available !Examples -<h1>, <form>, <li>,<ol>, <ul> , <p>, <pre>, <table>, <div> etc.

INLINE ELEMENTS :-Inline element doesn't start on a new line and it only takes up as much width as necessary !Example -<b>, <a>, <strong>, <em>, <img>, <span>, <input> etc.

Similar questions