Link to home
Start Free TrialLog in
Avatar of Melody Scott
Melody ScottFlag 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.
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

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
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Melody Scott

ASKER

That was it, it validates now. Thanks!!