|
Posted by Roy A. on 06/03/07 16:25
On 3 Jun, 16:19, chrisdude911 <chriswilli...@gmail.com> wrote:
> I am new to this
> Would you mind explains waht a "block element" and an "inline element"
> mean?
The body element can only contain block elements or inline (text
level) elements. If you're using a HTML 4.01 Strict DOCTYPE you
should put the img element in an block element, because this DOCTYPE
only allows block elements directly inside the body element.
<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->
http://www.w3.org/TR/html401/struct/global.html#edef-BODY
Block elements is defined as
<!ENTITY % block
"P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
http://www.w3.org/TR/html401/sgml/dtd.html#block
Inline elements is defined as
<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; |
%formctrl;">
http://www.w3.org/TR/html401/sgml/dtd.html#inline
INS and DEL is either block or inline, depending on the context.
Inline elements can only contain text or other inline elements. Block
level elements can, depending on the element, contain inline elements
and text; block elements, or a mix of those elements.
Beside block and inline elements, you can also use script elements
inside the body element.
Navigation:
[Reply to this message]
|