Block element chiếm toàn bộ chiều rộng, bắt đầu dòng mới (<div>, <p>, <h1>).
- Inline element chỉ chiếm chiều rộng cần thiết (
<span>,<a>,<strong>). - Block chứa được inline, nhưng thường không ngược lại.
- Ngoại lệ HTML5:
<a>có thể bọc block elements.
Block elements take up the full width and start on a new line (<div>, <p>, <h1>).
- Inline elements only take up as much width as needed (
<span>,<a>,<strong>). - Block can contain inline, but not usually the reverse.
- HTML5 exception:
<a>can wrap block elements.