Menu
×
×
Correct!
Exercise:Add the following CSS styles inline to the <h1> element
const Header = () => {
return (
<>
<h1 style={{color: "purple"}}>Hello Style!</h1>
<p>Add a little style!</p>
</>
);
}
const Header = () => {
return (
<>
<h1 style={{color: 'purple'}}>Hello Style!</h1>
<p>Add a little style!</p>
</>
);
}
const Header = () => {
return (
<>
<h1 style={{color:"purple"}}>Hello Style!</h1>
<p>Add a little style!</p>
</>
);
}
const Header = () => {
return (
<>
<h1 style={{color:'purple'}}>Hello Style!</h1>
<p>Add a little style!</p>
</>
);
}
Not CorrectClick here to try again. Correct!Next ❯const Header = () => { return ( <> <h1 style=>Hello Style!</h1> <p>Add a little style!</p> </> ); } |