Home > categories > Service Equipment > Labelers > What is a block - level element in CSS?
Question:

What is a block - level element in CSS?

What is a block - level element in CSS?

Answer:

Also called inline elements, inline elements, etc. inline elements are typically base elements based on the semantic level (semantic) that can only contain text or other inline elements, and the common inline element, a". For example, the SPAN element, the IFRAME element, and the element style display: inline are inline elements. For example, characters such as letters are arranged crosswise between the letters, and are automatically broken at the far right.
Always start on a new line;Height, line height, outside distance and inner margin can be controlled;The width is 100% of its container, unless a width is specified.It can accommodate inline elements and other block elements
DIV is the most commonly used block level element, and the display:block of the element style is a block level element. They are always shown in the form of a block, and they are arranged in vertical order at the same level as brothers.
Block level elements generally appear as containers and are used to organize structures, but not all of them. Some block level elements, such as <form>, can only contain block level elements. Other block level elements can contain row level elements, such as <P>., while others can contain block level or line level elements.
Each block level element defaults to one line height and adds a block level element within a row. It is not generally possible to add other elements (except after float floats). When two blocks of elements are continuously edited, they are automatically shown on the page. Block level elements can generally be nested with block level elements or inline elements;

Share to:

Hot Tag