Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level:3, lesson 3 output is wrong

The style attribute can be added to any HTML tag. To show you the same, we have a heading and a paragraph in the editor.

Change the color of the Heading(specified in the Terminal using the <h4> tag) to VIOLET. Add the style attribute inside the opening <h4> tag, with the value color:violet

Similarly, change the color of the paragraph to RED.
by

1 Answer

sam5epi0l
here is a possible solution to this exercise:

<!doctype html>
<html>
<head>
<title>My Webpage Title</title>
</head>
<body>
<h4 style="color:violet">Do you know?</h4>
<p style="color:red">The human brain takes in 11 million bits of information every second but is aware of only 40.</p>
</body>
</html>

Login / Signup to Answer the Question.