What’s wrong with the following code example?

    Eggs

    Milk

    Butter

  • Class names can’t have hyphens
  • <p> tags are the wrong tag to use here
  • There’s no such thing as a <ul> tag
  • None of the above

EXPLANATION

A list requires at least one list item, defined as an <li> element. Adding a paragraph to a list works only if it’s placed within a list item, but never as a direct child as demonstrated in the incorrect code example.

Leave a comment