Home >Web Front-end >HTML Tutorial >The difference between html block-level tags and inline tags _HTML/Xhtml_Web page production

The difference between html block-level tags and inline tags _HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:41:571284browse

1. Block-level element: refers to the ability to exist independently. Generally, block-level elements are separated by line breaks (such as starting a new line after the end of a paragraph). Commonly used block-level elements include: p, h1~h6, div, ul, etc. ;

2. Inline element: refers to the existence of other block-level elements, which are displayed immediately between the connected elements without wrapping. Commonly used inline elements include: img, span, li, br, etc.;

3. Top-level element: includes html, body, frameset, behaves like Block-level element, and is an advanced block-level element.

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