W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

Re: I want to put <li> inside of <font>,<h#>,<b>,<i> tags

From: Richard A. O'Keefe <ok@atlas.otago.ac.nz>
Date: Fri, 4 Aug 2000 13:52:19 +1200 (NZST)
Message-Id: <200008040152.NAA02045@atlas.otago.ac.nz>
To: dcoffin@wildfire.com, html-tidy@w3.org
	     Tidy complains when I do this:
		<H2><LI>Overview of Process</H2>
<!ELEMENT (OL|UL) - - (LI)+>
<!ENTITY % flow "(%text | %block)*">
<!ELEMENT LI      - - %flow>
BUT H2 is not an element of the %flow class.

H1-H6 and ADDRESS aren't supposed to occur in lists *anyhere*.

	     Problem is, if I put the <LI> tag first,
		<LI><H2>Overview of Process</H2>
	     the numeric index generated by <LI> won't share the
	text attributes of the header string.

No, you have a worse problem.  That one isn't legal HTML either.

	Is there any syntax that Tidy approves of?

	<H2>1.  Overview of Process</H2>
	<H2>2.  Second section</H2>
	<H2>n.  Last section</H2>
Received on Thursday, 3 August 2000 21:52:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC