<!DOCTYPE html> <html> <head> <style> body > span { border: 3px solid blue } </style> </head> <body> <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> </body> </html>