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

How to change the color of the heading?

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

I do everything as well and text chanced to violet and red ,but submission does not get.
by

3 Answers

iamabhishek
Try like this,

<h4 style="color:violet;">Some Heading</h4>
<p style="color:red;">Some paragraph</p>

Try with the ending semicolon once.
kshitijrana14
Try this one

<!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>
Валентин
Bingo!Lesson complete.Thank you very much.Stay awesome.

Login / Signup to Answer the Question.