呃。。。這個會不會太基礎了。最近在複習,因此基礎知識也不可以忽略。html
根據HTML 4.01 規範,其描述以下(http://www.w3.org/TR/html401/struct/global.html#h-7.5.3):app
1. 內容模型:block元素能夠包含block元素和inline元素,inline元素能夠包含數據和其餘inline元素(就是說inline不能包含block)。核心思想就是相比inline元素,block元素構建的結構都「比較大」。ide
2. 格式:默認,block元素之間有換行,inline元素之間沒有。this
3. 文本方向:在實現文本方向上,block元素和inline元素有差異。block元素會繼承dir屬性,inline不會。idea
原文:spa
Certain HTML elements that may appear in BODY are said to be "block-level" while others are "inline" (also known as "text level"). The distinction is founded on several notions:orm
Style sheets provide the means to specify the rendering of arbitrary elements, including whether an element is rendered as block or inline. In some cases, such as an inline style for list elements, this may be appropriate, but generally speaking, authors are discouraged from overriding the conventional interpretation of HTML elements in this way.htm
The alteration of the traditional presentation idioms for block level and inline elements also has an impact on the bidirectional text algorithm. See the section on the effect of style sheets on bidirectionality for more information.繼承