A Simple Website to Learn Programming
CSS stands for Cascading Style Sheets. It is used to style HTML elements, such as changing their color, size, and spacing. In this project, CSS is written directly inside HTML tags using the style attribute. This is called inline CSS.
<p style="color: blue;">This is blue text.</p>
This is blue text.
<p style="background-color: green; color: white;">Green Background</p>
Green Background
<p style="font-size: 20px;">This text is bigger.</p>
This text is bigger.
<p style="text-align: center;">Centered Text</p>
Centered Text
<div style="border: 2px solid black;">Box with Border</div>
<div style="width: 150px; padding: 10px; border: 1px solid black;">Box</div>
| Property | Purpose |
| color | Sets the text color |
| background-color | Sets the background color |
| font-size | Sets the size of the text |
| text-align | Aligns text left, center, or right |
| border | Adds a border around an element |
| width | Sets how wide an element is |
| padding | Adds space inside an element |
LearnCode - Student Project - 2026