Share your repls and programming experiences

← Back to all posts
Day 2 Challenge 2
GillianM1 (1)

Anyone know how I'm going wrong with one question in second challenge. Think it's something to do with Hex?

<!DOCTYPE html><html> <head> <title>Day 2 Challenge 2</title> <style> body {font-style: Arial; font-size: 14px; font-style: Arial; } h1 { color:#ffd700 ; text-transform: uppercase; font-style: Arial;
	}
	p {
		color: darkslategray;
	}
	em {
		font-size: 20px;
		color: rgb(0,128,0);
	}
	strong {
		font-size: 24px;
		color: rgb(0,0,0);
	}

</style>
</head> <body> <h1>Why is HTML so successful?</h1> <p>Html is <em>easy</em></p> <p>Html is <strong>fun</strong></p> </body></html>
Commentshotnewtop
AdCharity (1264)

Do you know what the challenge is?

AdCharity (1264)

hex? hex usually looks like #ffffff (which is white) and can be shortened from 6 to 3 characters depending on the type of color (#ffffff -> #fff). What you're doing is rgb(), which passes in the amount of red, green, and blue you want out of 255 for each value.

GillianM1 (1)

[email protected], I actually got through it in the end but every response helps in my learning and understanding so thanks again.