HTML Language Learn: Types of HTML Tags

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:

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:

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.

Thank you for reading the article and do not forget to share it with friends

Post Comment

You May Have Missed