Edit in JSFiddle
HTML
Result
X <input type = "checkbox" /> Y <input type = "checkbox" /> Z <input type = "checkbox" />