At 4/3/2010 07:39 PM, T. R. Valentine wrote:
Apparently, <blockquote></blockquote> cannot be used alone. It
produces 'character data is not allowed here'. What does it need?
Check the spec:
HTML 4.01 Specification
9 Text
9.2 Structured text
9.2.2 Quotations: The BLOCKQUOTE and Q elements
http://www.w3.org/TR/html4/struct/text.html#h-9.2.2
<!ELEMENT BLOCKQUOTE - - (%block;|SCRIPT)+ -- long quotation -->
This excerpt from the Document Type Declaration specifies that the
only children of blockquote permitted are block-type elements and
script. In other words, text within the blockquote element must be
enclosed in a p, div, list, or other block-type element.
Also, can the <blockquote> tag have a class assigned to it?
Let's find out. From the above reference:
<!ATTLIST BLOCKQUOTE
%attrs; -- %coreattrs, %i18n, %events --
cite %URI; #IMPLIED -- URI for source document or msg --
>
This specifies which attributes blockquote may have. The symbol
%attrs is defined as:
<!ENTITY % attrs "%coreattrs; %i18n; %events;">
...%coreattrs in turn is defined as:
<!ENTITY % coreattrs
"id ID #IMPLIED -- document-wide unique id --
class CDATA #IMPLIED -- space-separated list of classes --
style %StyleSheet; #IMPLIED -- associated style info --
title %Text; #IMPLIED -- advisory title --"
>
So yes, you may validly assign a class attribute to a blockquote element.
Regards,
Paul
__________________________
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************