Differentiate between inline and block element.
Question :
Differentiate between inline and block element.
Inline element does not have an element to set width and height and also it does not have the line break.
Example:-
links <a>, emphasized words <em>, important words <strong>, and abbreviations
<abbr> Block elements are meant to structure the main parts of our page, by dividing our
content in coherent block.
Example:- width and height, paragraphs <p>, lists: unordered <ul> and ordered lists <ol>
Headings: from 1st level <h1> to 6th level headings <h6>, articles <article> and sections
<section> .