CSS block-level tags, inline tags, and inline block tag conversion (2)
高洛峰
Release: 2017-02-22 13:34:52
Original
1685 people have browsed it
HTMLClassification of tags
When talking about tag classification, as beginners, when we first use tags, we will find that some attributes are on some tags Does not work, such as width, height, horizontal centering, etc. In fact, the use of this attribute only works when used on block-level tags. Personally, I think this is something that beginners can easily overlook, so I wrote it down!
First of all, we can divide the HTML tags into block-level tags, in-line tags, and in-line block tags according to the different displays; now we will introduce them respectively. .
Block-level tags
## Features: is on one line, It takes effect for the settable attribute values of height, width, line height, and top and bottom margins; if no width is given, the block-level element defaults to the width of the browser, which is 100% width;
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