<!DOCTYPE html> <body> <div>First</div> <div> <style scoped> div { color: green } </style> Second <div> <style scoped> div { text-decoration: underline } </style> Third </div> </div> </body>