Home >Web Front-end >HTML Tutorial >Introduction to block tags and inline tags in HTML

Introduction to block tags and inline tags in HTML

零下一度
零下一度Original
2017-06-24 11:44:379983browse

HTML tags are generally divided into two types: block tags and inline tags. They are also called block elements and inline elements.

Block element

Each block element usually occupies a whole row or multiple whole rows by itself. You can set width, height, alignment and other attributes for it. It is commonly used The construction of web page layout and web page structure. And block-level element containers can accommodate multiple nested block-level tags or inline tags. Common block elements include

~

,

,

,