দুটোই এলিমেন্ট ম্যাচ করার দৃষ্টিতে একই। একটি উদাহরণ দেখি:
<section> <div></div> <!-- div:first-child or div:first-of-type --> <div></div> <!-- div+div or div~div or div:nth-of-type(2) --> <p></p> <div></div> <!-- div+p+div or div~div or div:nth-of-type(3), but not div+div --> </section> <section> <h1></h1> <!-- h1:first-child --> <div></div> <!-- div:first-of-type or div:nth-child(2) --> <div></div> <!-- div~div or div:nth-of-type(2) or div:nth-child(3) --> </section>
আপনার যদি দুটি সিলেক্টর একই এলিমেন্ট ম্যাচ করে এমন CSS রুল থাকে, তবে আপনার div: not(:first-of-type) :first-of-type pseudo-class-এর কারণে প্রেসিডেন্স পাবে।