Target parent li only not child with css : <p>I want to target the parent li, not the child li with css selecter only.</p>

<pre><code>&lt;ul&gt;
        &lt;li&gt;{Target the li of this ul only}&lt;/li&gt;
        &lt;li&gt;{Target the li of this ul only}&lt;/li&gt;
        &lt;li&gt;
            &lt;ul&gt;
                &lt;li&gt;{it would be different styling}&lt;/li&gt;
                &lt;li&gt;{it would be different styling}&lt;/li&gt;
                &lt;li&gt;{it would be different styling}&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
</code></pre>
