I'm creating an element using jquery then appending it to another one. I'm trying to style my header but it doesn't seem to be working for some reason. There doesn't seem to be any syntax errors. It's appending to the div and the text is appearing, it's just not being styled.
jQuery('<h3/>', {
text: 'Todays news',
css: ('background-color', 'red'),
id: 'tdn'
}).appendTo('#div1');
Any help would be appreciated