Recap Challenge #2
Part of the Styling with CSS section of Coddy's HTML journey — lesson 24 of 76.
Challenge
EasyIn this second recap challenge, you'll apply your knowledge of text styling properties in CSS to recreate a specific design. This challenge will test your ability to combine various text properties, such as color, font-family, font-size, font-weight, text-align, and text-decoration, to match a given design.
You are given an HTML document with a heading (<h1>), a paragraph (<p>), a link (<a>), and an unordered list (<ul>) with list items (<li>). Your task is to use the text styling properties you've learned to style these elements to match the design shown in the image below:

Follow the steps below:
- Write a CSS rule that targets the
<h1>element. Set thecolortoblack, thefont-familyto"Times New Roman", Times, serif, thefont-sizeto48px, thefont-weighttobold, and thetext-aligntocenter. - Write a CSS rule that targets the
<p>element. Set thecolortogray, thefont-familytoArial, Helvetica, sans-serif, thefont-sizeto18px, and thetext-aligntocenter. - Write a CSS rule that targets the
<a>element. Set thecolortored, thetext-decorationtonone. - Write a CSS rule that targets all
<li>elements. Set thecolortogreen, thefont-familyto"Courier New", Courier, monospace, thefont-sizeto25px, and thefont-weightto600.
Try it yourself
<html>
<head>
<title>Recap Challenge #2</title>
<style>
/* Write CSS rules here */
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph with a <a href="#">link</a>.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</body>
</html>All lessons in Styling with CSS
4Text Fundamentals
Text ColorFont FamilyFont SizeFont WeightText AlignmentText DecorationRecap Challenge #1Recap Challenge #25 Colors and Backgrounds
Background ColorHEX ColorsRGB ColorsTransparency with RGBARecap Challenge #1