What are Inline and block elements in HTML ? :-
• Block-level elements :- Block elements creates a horizontal boundary block. It always start on new line and take full width on screen.
Some examples are <div>, heading elements, <p>.
• Inline-level elements :- Inline elements do not creates a horizontal boundary block. This elements do not start on new line.
Some examples are <span>, <img>, <a>, etc.
Comments
Post a Comment