Element i not allowed as child of element ol in this context.

Hi, on this page: frozenfoodfulfillment.com/responsive/agreement2.html, I got that error. I had already stried  wrapping the words in an <em> tag, but got: Element em not allowed as child of element ol in this context.

I tried: <span style="font-style:italic;"> but got: Element span not allowed as child of element ol in this context.

So how can I italicize certain words in an ol tag?

Thanks for your help.
Who is Participating?
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I think the issue is you don't have an opening li tag but you do have a closing li tag.

<ol> Fees and charges for the Services are as set forth in the Proposal and shall be reviewed annually and agreed upon for subsequent 1-year periods; <i>provided, however,</i> that such rates may be increased by Provider on no less than thirty (30) days prior notice based on a documented increase of five percent (5%) or more of Provider&rsquo;s costs to provide the Services.  Unless otherwise provided in the Proposal, fees and charges will be invoiced weekly and paid by Customer within seven (7) days after invoice. Interest on any late payments shall accrue at the rate of one (1.0%) per month or partial month during which any sums under any such payment invoices were owed and unpaid, or the highest rate permitted by law, whichever is lower, from the date such amount is due until finally paid.  In addition to the foregoing, In the event that an invoice is not paid within fourteen (14) days after due, Provider shall have the right, effective upon written notice to suspend its obligation to provide Services pursuant to this Agreement until the outstanding balance of such invoice is paid in full.  For any services not specified in the Proposal, Customer shall pay to the Provider such consideration as may be mutually agreed upon in advance in writing or, absent such agreement, Provider&rsquo;s then prevailing standard rates. </li>

Open in new window

Dave BaldwinFixer of ProblemsCommented:
You can't.  'ol' (ordered list) and 'ul' (unordered list) are grouping tags, not display elements.  You need to use 'li' as the individual elements and you can style them.  More info here: http://www.w3schools.com/html/html_lists.asp
mel200Author Commented:
That was it, it validates now. Thanks!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.