Sonzaschool
Back

O-Level · Secondary 4

ICT

CSS Styling

about 8 minutes to read

Discussions
Topics in this sectionIntroduction to Web Design2 topics
  1. HTML Basics
  2. CSS Styling

CSS Styling — Adding Color and Design to Web Pages

When you create a webpage using HTML, the browser shows plain content by default. All headings look the same, all paragraphs look the same, and there is no color. CSS (Cascading Style Sheets) lets you change how HTML elements appear. You can add colors, change font sizes, set margins, and make your page attractive. This is what we mean by "styling" — giving your webpage a visual design.

CSS is a language that works together with HTML. HTML provides the structure (the content, headings, paragraphs, images, and tables), while CSS provides the presentation (colors, fonts, spacing, borders, and layout). When you apply CSS to your HTML, you tell the browser exactly how each element should look.

Think of it like building a house. HTML is the frame and walls — the structure. CSS is the paint, tiles, and decorations — the visual finish. Both are needed to create a complete webpage.

Question

What is the selector in the following CSS rule?

Sign in to submit your answer and have it count toward your mastery.

Sign in to practice

Tutor

Stuck? Ask me anything about this topic.

Sign in to ask the Sonza AI Tutor about this question.

Sign in to ask

Discussions

No questions yet

Sign in to ask
Loading discussions…