Sobes.tech
Junior — Senior

How to form a CSS selector to select the desired links

livecode

Task condition

The HTML markup contains various elements. You need to construct a CSS selector that selects all links that meet the following criteria: • are inside an element with the class .menu; • are the last child nodes; • do not contain the attribute target="_blank".

 <div class="menu">
    <a href="home.html">Home</a>
    <a href="contact.html">Contact</a>
    <a href="profile.html" target="_blank">
    Profile
    </a>
</div>