HTML elements are divided into two types: the first type is block elements and the second type is inline elements.
difference between block elements and inline elements in HTML:
block elements:
What are block elements in HTML?
Block-level elements are elements that take up the entire width and do not allow any other element to share the same line, whether the element is of block type or inline.
inline elements:
What are inline elements in HTML?
Inline elements are elements that do not need to be fully displayed and also allow another inline element to share the same line.
note:
You can control the type of the element using the CSS formatting language and change the block element to an inline element and vice versa, and we will discuss it in the CSS course.
Note: English is not my official language. Mostly I use Google Translate. Therefore, if you encounter a problem or find some errors, you can inform me of the error on the contact us page or comments, or go to w3schools website to understand the lesson well.
Thank you for reading the article and do not forget to share it with friends