Avatar of Melody Scott
Melody Scott
Flag for United States of America asked on

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.
CSSHTMLWeb Development

Avatar of undefined
Last Comment
Melody Scott

8/22/2022 - Mon
Dave Baldwin

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
ASKER CERTIFIED SOLUTION
Scott Fell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Melody Scott

ASKER
That was it, it validates now. Thanks!!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck