I am seeking a way to apply the list-style-type: none;
property to all li
elements that contain a major header (<h1>
, <h2>
, and <h3>
).
My initial attempt looked like this -
li h1,
li h2,
li h3 {
list-style-type: none;
}
However, I quickly realized that it wouldn't work as intended because it was targeting the headers rather than the list elements themselves.
Is there a different approach I can take to achieve this?