Reply to Re: inline vs. block

Your name:

Reply:


Posted by David Dorward on 03/29/06 23:40

Stan McCann wrote:

> How is a novice to tell the difference between an inline and block
> level element?

The basic difference is that blocks have a line break before and after them,
while inline flow beside each other and word wrap.

> For many elements, it is marked as in:
> <!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->
>
> For others, it seems that this is incorrect:
> <!ELEMENT ADDRESS - - (%inline;)* -- information on author -->
>
> Is this saying that address (p and possibly others) are inline elements
> or am I reading it wrong?

You are. That says that the ADDRESS element may contain "zero or more
elements in the group %inline" (and nothing else).

(The form bit says it may contain one or more elements which are either
script or in the group %block except other FORM elements).

> Is there someplace else in the specification
> that states whether an element is inline or block?

http://www.w3.org/TR/html4/sgml/dtd.html#block

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация