Edit in JSFiddle
Result
CSS
HTML
h1 { background-color:yellow; }
<h1>This is a green text with yellow background.</h1>