[Discuss] HTML formatting question

Ronald Schouten ron at atomeo.com
Fri Oct 13 13:08:07 PDT 2006


I think the problem you are running into is that <pre> elements cannot be
nested within <pre> elements and <font> tags are just plain wrong
(deprecated) and will through an error no matter where they are. Without
knowing what you want to contain in the <pre> element and why I would
recommend using <span> elements or other more semantic mark-up to further
identify and style your text.

Hope that makes sense,

Ron

On 13/10/06, Thomas McVeigh <thom at idar.com> wrote:
>
>
> On 13-Oct-06, at 11:50 AM, Adam Parkin wrote:
>
> > But the w3 validator chokes on this as apparently you cannot have a
> > font tag inside a pre tag.
>
>
> What I think you want is blockquote.
>   Syntax:
>      <blockquote> ... </blockquote>
>
> The blockquote tag is used to offset a block of text (a citation)
> from the rest of the document. The exact appearance will be browser
> dependent. However, the citation is usually indented on both the
> right and left margins, may be in italics, and is preceded and
> followed by paragraph breaks. You will still need to use the br, p,
> and possibly other HTML tags to effect the textual display and
> appearance that you desire. In fact, you can use any other HTML tag
> inside a blockquote, including cite and q.
>
> It is recommended that you use the blockquote tag for long citations
> and the cite tag for short citations.
>
> The separate closing tag is mandatory.
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss
>


More information about the Discuss mailing list