Block Vs Inline Element in HTML
Hello World!, Welcome back to new blog.
Block Level Element
Block level element always starts from new line and covers the full width available on screen, rather than the area in which the text is written.
Some block level elements are <div>, <p>, <hr>, <br> and heading tags.
Inline Level Element
Inline elements does not start from new line, and they only covers the area in which they have the text.
Some inline elements are <span>, and most of formatting tags.
Thanks for reading, please leave a comment, if you found this useful.