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.

Share on:
Online Certification Guide

About Author

Hey there, its OnlineCertificationGuide here to help you out in your Journey in the study. So my friend share the site with your friends in case I am helpful to you.