11. Keeping it classy - font color



I wonder how I can fix the error message regarding the color? Also, I tried adding images to the HTML. They were visible until I started adding the classes. How do you create the correct class for images?

Oops, try again. Did you set the color of the .fancy class to #0000CD;?

<!DOCTYPE html>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<div class="fancy">Hihhei></div>
		<td class="fancy">Lallaa></td>


/*Define your CSS class .fancy below!*/
.fancy {
    font-family: Cursive;
    font-color: #0000cd;

Thanks Guys!


Color attribute is just color not font-color


Oh nice, it worked, thank you! I wonder why it's not font-color? :smiley: It makes no sense to me lol


from MDN:

it should really be called text-color and would have been named so, save for historical reasons and its appearance in CSS Level 1.


hey can you explain it better i dont understand



this topic is really old, if you have a question, please make a new one