ps: [1] The difference between the two elements is whether the width and height can be set, and whether they occupy an exclusive line
【2】Convert block elements to inline elements, or inline elements to block elements.
If p defaults to p{display:block;}, you can convert p{display:inline;} into an inline element and vice versa.
Special case: The image img is an inline element like a block element. Width and height (own attributes) can be set, but it does not occupy an exclusive line.
【3】Thinking question: If you can make inline elements float, the width and height will work.
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.