Re: inline vs. block
- From: Stan McCann <me@xxxxxxxxxxxxx>
- Date: 29 Mar 2006 14:08:00 -0700
David Dorward <dorward@xxxxxxxxx> wrote in
Stan McCann wrote:
How is a novice to tell the difference between an inline and block
The basic difference is that blocks have a line break before and
after them, while inline flow beside each other and word wrap.
I knew that. I was looking for something to explain to those brand new
to HTML how to tell the difference to prevent things like <code><pre>
as my students are not understanding the validator's complaints.
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).
Ah. Thanks for that; the light comes on.
(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?
I had looked at that many times. Only after your pointing it out did I
actually perceive what it is saying. A great example of "The more I
learn, the more I realize there is so much more to learn." Thanks
Stan McCann, "Uncle Pirate" http://stanmccann.us/
Webmaster, NMSU at Alamogordo http://alamo.nmsu.edu/
Now blocking Google Grouper posts and replies.
- Prev by Date: Re: css
- Next by Date: Re: css
- Previous by thread: Re: inline vs. block
- Next by thread: Re: inline vs. block