Re: Valid XHTML Question?

by Christopher Higgs <chiggs(at)unimelb.edu.au>

 Date:  Mon, 03 Jun 2002 12:30:20 +1000
 To:  "Hall,
Richard H." <rhall(at)umr.edu>,
"Hwg-Basics List (E-mail)" <hwg-basics(at)hwg.org>
 In-Reply-To:  umr
  todo: View Thread, Original
At 04:52 PM 2/06/2002 -0500, Hall, Richard H. wrote:
>I have been trying to validate a page based on strict XHTML and have got 
>it down to two errors, which are:
>
>*****
>Line 27, column 5:
>     <h3>The mission of the Media Research Laboratory is to conduct resea ...
>        ^
>Error: element "h3" not allowed here; possible cause is an inline element 
>containing a block-level element
>Line 32, column 5:
>     <h1>The laboratory's is a part of the <a href = "http://www.umr.edu/ ...
>        ^
>Error: element "h1" not allowed here; possible cause is an inline element 
>containing a block-level element

Yep - that's correct.  Headings are block level elements, and cannot be 
placed inside paragraphs:

>         <p>
>                 <img src = "images/aram.jpg" class="main_image1" 
> alt="picture from of Aram in Usability Lab" />
>                 <h3>The mission of the Media Research Laboratory is to 
> conduct research related to the design, development, and evaluation
>                 of web-based new-media technologies.</h3>
>         </p>

Should be:

         <p>
                 <img src = "images/aram.jpg" class="main_image1" 
alt="picture from of Aram in Usability Lab" />
         </p>
                 <h3>The mission of the Media Research Laboratory is to 
conduct research related to the design, development, and evaluation
                 of web-based new-media technologies.</h3>


Chris Higgs
Manager, New Learning Technology
ILFR, University of Melbourne
http://www.landfood.unimelb.edu.au/
Phone: +61 3 8344 9749  Fax: + 61 3 9348 2156

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA