Menu
×
×
Correct!
Exercise:Add the following CSS styles inline to the <h1> element
const Header = () => {
return (
<>
<h1 style=@(29)>Hello Style!</h1>
<p>Add a little style!</p>
</>
);
}
const Header = () => {
return (
<>
<h1 style={{backgroundColor: "yellow"}}>Hello Style!</h1>
<p>Add a little style!</p>
</>
);
}
const Header = () => {
return (
<>
<h1 style={{backgroundColor: 'yellow'}}>Hello Style!</h1>
<p>Add a little style!</p>
</>
);
}
const Header = () => {
return (
<>
<h1 style={{backgroundColor:"yellow"}}>Hello Style!</h1>
<p>Add a little style!</p>
</>
);
}
const Header = () => {
return (
<>
<h1 style={{backgroundColor:'yellow'}}>Hello Style!</h1>
<p>Add a little style!</p>
</>
);
}
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 24 exercises.
Are you sure you want to continue?