Creating html elements


#1

What am I doing wrong
my code is:

$(document).ready(function(){
$h1= $("<h1>"Hello"</h1>");
});

my code is brining up these messages:
Oops, try again. Did you create a variable called $h1?
and
Expected ')'


#2

@ednamodenocapes

Make sure your # is inside the double quotes like this "#Hello".


#3

Thanks @miniapple8888
I have made the change you stated and also I have changed the double quotes to single quotes as this for some reason has made a difference. Code now looks like this and goes through:

$(document).ready(function(){
$h1= $("<h1>'#Hello'</h1>");   
});