scrimba
HTML & CSS
CSS Basics
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
CSS Basics
Expand for more info
index.html
run
preview
console
<html>
<head>
<title>Introduction to CSS</title>
</head>
<body>
<h1 style="font-size: 70px; color: red;">Cascading Style Sheets</h1>
<p>We use CSS to add style to our HTML documents.</p>
<p>There are a few different ways to add CSS to a document, but for time being we'll be using <em>inline</em> CSS.</p>
<h2>Inline CSS</h2>
<p>Inline CSS is written directly in our HTML using a style attribute.</p>
<p>We can style any element using inline styles, from the body to headings and paragraphs, <a href="#">as well as links</a> and strong and em tags too!</p>
</body>
</html>
Console
index.html
-6:01