CSS stands for Cascading Style Sheets. It is used to style our applications

You can add CSS to your HTML app by using -

  1. The style attribute (inline styles)
  2. In an external css file

Approach #1 - Inline styles

Try updating the body tag in the last style as follows -

<body style="background-color: black;">
... rest of the code
</body>

Approach #2 - External styles

  1. Add a new file called index.css
  2. Add the following code in it
body {
    background-color: black;
}
<html>
	<title>
		Visual Studio Code - Code Editor
	</title>
	<link rel="stylesheet" href="index.css">
</html>
<body>
... rest of the code
</body>

Screenshot 2024-08-03 at 7.05.50 PM.png

Common style attributes