<!DOCTYPE html> <html> <head> <style> body > span { border: 3px solid blue } body > span > span { border: 3px solid cyan } </style> </head> <body> <span><span ><span>One</span ><span>Two</span ><span>Three</span ><div>Four</div ><div>Five</div ><span>Six</span ><div>Seven</div ><div>Eight</div ><span>Nine</span ><span>Ten</span ></span></span> </body> </html>