CSS Basics

Learn CSS styling

12 views
8 min read
Try It Yourself

Experiment with the code in an interactive editor

CSS is used to style HTML elements.

1<!DOCTYPE html>
2
3<html lang="en">
4
5<head>
6
7    <meta charset="UTF-8">
8
9    <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
11    <title>Page Title</title>
12
13</head>
14
15<body>
16
17    <!-- All visible content goes here -->
18
19</body>
20
21</html>