How to use row-level tags and block-level tags in HTML
Xiaobian to share with you how to use HTML line level tags and block level tags, I believe most people still do not know how to use, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
I. Block Level Labels
1. Exclusive line, not in the same line as other elements
2. Can set width and height
Common block tags: div,p,h2-h7,ul,li,dl,dt,dd
Code:
We're p-tagged.
We're p-tagged.
We're p-tagged.
Open display in browser.
II. Row Level Labels
1. Can stay on the same line as other elements
2. Width and height cannot be set
Common row level tags: a, span,strong,u,em-->
Code: hello
hello
hello
III. Inline block labels
1. Can stay in line with other elements
2 can set width and height
Common inline block tags: img,input,textarea
Code:
By browsing through the browser, you can compare the similarities and differences between the two.
The above is "HTML line level tags and block level tags how to use" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!