Home >Web Front-end >HTML Tutorial >[Pre-development] Summary of inline elements and block-level elements (HTML CSS)_html/css_WEB-ITnose
Block-level elements
information on author | |||||||||||||||||
long quotation | |||||||||||||||||
push button | |||||||||||||||||
table caption | |||||||||||||||||
definition description | |||||||||||||||||
deleted text | |||||||||||||||||
generic language/style container | |||||||||||||||||
definition list | |||||||||||||||||
definition term | |||||||||||||||||
form control group | |||||||||||||||||
interactive form | |||||||||||||||||
heading | |||||||||||||||||
heading | |||||||||||||||||
heading | |||||||||||||||||
heading | |||||||||||||||||
heading | |||||||||||||||||
heading | |||||||||||||||||
horizontal rule | |||||||||||||||||
inline subwindow | |||||||||||||||||
inserted text | |||||||||||||||||
fieldset legend | |||||||||||||||||
list item | |||||||||||||||||
client-side image map | |||||||||||||||||
alternate content container for non frame-based rendering | |||||||||||||||||
alternate content container for non script-based rendering | |||||||||||||||||
generic embedded object | |||||||||||||||||
ordered list | |||||||||||||||||
paragraph | |||||||||||||||||
preformatted text | |||||||||||||||||
Inline elements
Inline elements and non-replaced elements will not be applied width attribute, for example, if width:200px is applied to the inline element , you will not see any effect. The height attribute will not be applied to inline elements and non-replacement elements, but the height can be specified through line-height. You can set padding for inline elements, but only padding-left and padding-right will have an effect, not padding-top and padding-bottom. The margin attribute is also the same as the padding attribute. It is valid for the left and right of inline elements, but not for the top and bottom. Statement: The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn |