সম্পাদনা
<!DOCTYPE html> <html> <body> <button onclick="execute()">ক্লিক করুন</button> <div> <p>প্রোগ্রামিং শিখে নিজের ক্যারিয়ার গড়ে তুলুন</p> </div> <div> <p>হাইপার টেক্সট মার্কআপ ল্যাঙ্গুয়েজ</p> <p>ক্যাসকেডিং স্টাইল শিট</p> </div> <script> function execute() { document.querySelectorAll("div p:only-child").forEach(function(element) { element.style.color = "coral"; }); } </script> </body> </html>
পূর্বরূপ