</>
Skip to content
W3.CSS lessons (2/38)

W3.CSS — Introduction

What is W3.CSS?

W3.CSS is a modern CSS framework with built-in responsiveness. It is smaller and faster than Bootstrap, easier to learn, and easier to use.

Why Use W3.CSS?

FeatureDescription
Easy to learnSimple syntax, easy to understand
Easy to useCopy and paste HTML code
FreeOpen source under Apache 2.0 license
ResponsiveBuilt-in responsive design
FastSmaller and faster than Bootstrap

Getting Started

To use W3.CSS, simply add this link to your HTML:

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
<body>
    <div class="w3-container">
        <h1>Hello W3.CSS!</h1>
    </div>
</body>
</html>

Basic Example

<div class="w3-card-4">
    <header class="w3-container w3-blue">
        <h1>Card Header</h1>
    </header>
    <div class="w3-container">
        <p>Card content goes here.</p>
    </div>
    <footer class="w3-container w3-blue">
        <p>Card Footer</p>
    </footer>
</div>

W3.CSS vs Bootstrap

FeatureW3.CSSBootstrap
Size~15KB~200KB
DependenciesNonejQuery, Popper.js
Learning CurveEasyModerate
ResponsivenessBuilt-inBuilt-in
Browser SupportAll modernAll modern

Mini Practice

Write HTML code that:

  1. Links to the W3.CSS stylesheet
  2. Creates a container with a heading
  3. Adds a card component with header and footer

Up Next

Next: Learn about W3.CSS Containers.

Related Topics

Frequently Asked Questions about Introduction

What is Introduction in W3.CSS?

Introduction is a fundamental concept in W3.CSS. This lesson explains it step by step with clear examples, making it easy for beginners to understand.

How do I learn Introduction?

Start by reading the explanation above, then try the code examples. Practice by modifying the examples and experimenting with different values. Hands-on practice is the best way to learn Introduction.

Why is Introduction important in W3.CSS?

Introduction is essential for W3.CSS development. Understanding this concept will help you write better code and solve real-world problems more effectively.