Add some style
이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
English
Adding style
- HTML gives your page its content. CSS makes it look good.
- The easiest way to add CSS is a
<style>block near the top of your page. - Inside it, you write rules that change how things look.

English
A CSS rule
- A rule has three parts:
p { color: blue; } pis the selector — which tags to change (here, every paragraph).coloris the property — what to change.blueis the value — what to change it to. (Together,color: blue;is one declaration.)
English
<style>
p { color: blue; }
</style>
<p>Now I am blue.</p>
<p>So am I!</p>
English
Common mistakes
- Link the CSS file, or put rules inside a
<style>block. - Separate declarations with semicolons, and close the rule with
}. The final declaration before}may omit its semicolon; keeping it helps when you add another declaration.
English
Now you try
- Write your rules inside the
<style>block. - Colour your paragraphs, then your heading.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Make every paragraph 파란색. Inside the <style> block, add the rule p { color: blue; }.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Now colour the heading too. Add a rule h1 { color: red; }.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
One rule can change several things. Write one rule for p with 두 개 declarations: color: green; 및 font-size: 20px;.