<!doctype html> <style> span { width: 50px; height: 50px; margin: 5px; display: inline-block; background-color: green; } </style> <span id="a"></span> <span id="b"></span> <span id="c"></span> <span id="d"></span> <span id="e"></span>