codegurukool.com · Free coding tutorials & online compiler

Home › CSS Tutorial › CSS introduction

CSS introduction

CSS styles how HTML looks.

CSS (Cascading Style Sheets) controls color, layout and fonts. HTML gives structure; CSS gives appearance.

Example code

<style>
h1{color:#2e86de;text-align:center}
</style>
<h1>Styled by CSS</h1>

Run this code in the online editor

← Transitions and animationsCSS syntax →