Reply to Re: inline vs. block

Your name:

Reply:


Posted by Toby Inkster on 03/30/06 09:20

Stan McCann wrote:

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

Say that inline elements are "phrase level" and block elements are
"paragraph level".

It's not strictly true 100% of the time, but I think that analogy shows
the "personality" of the groups of elements quite well. The details can
be taught after the personalities are grasped.

I think then they'll see why, say, <b><p>...</p></b> won't fly -- you
can't have a paragraph within a phrase -- it has to be the other way
around.

The main details that then need mentioning are:

* block elements are _typically_ rendered in a paragraph-
like manner, with a line break before and after, though
this may be changed in CSS-capable browsers.

* many block level elements _can't_ contain other block
level elements (e.g. P, H1...H6);

* others _may_ contain block level elements (e.g. DIV,
LI); and

* a handful _must_ either contain other block level elements
or remain completely empty (e.g. BLOCKQUOTE, UL, OL).

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[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

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