What are the css block-level elements
This article mainly shows you "what are the css block-level elements", the content is simple and clear, and I hope it can help you solve your doubts. Let the editor lead you to study and learn "what are the css block-level elements"?
Css block-level elements
Common block-level elements:
~
Which is the most classic block-level element
Block-level element characteristics:
1. He is more overbearing and has his own line.
two。 Height, width, outer margin and inner margin can be controlled.
3. The width defaults to 100% of the container (parent element width).
4. Is a container and box in which internal or block-level elements can be released.
Note:
Only text can form paragraphs, so you can't put block-level elements in p, especially div in P.
In the same way, there are these tags, h _ 2 and h _ 3, h _ 4, h _ 5, h _ 6, h _ 7, DT, they are all text block-level elements, and no other block-level elements can be placed in them.
The above is all the content of the article "what are the css block-level elements?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!