English 中文(简体)
W3.CSS - Quick Guide
  • 时间:2024-12-22

W3.CSS - Quick Guide


Previous Page Next Page  

W3.CSS - Overview

What is W3.CSS?

W3.CSS is a Cascading Style Sheet (CSS) developed by w3schools.com. It helps in creating faster, beautiful, and responsive websites. It is inspired from Google Material Design.

Some of its sapent features are as follows −

    In-built responsive designing

    Standard CSS

    Inspired by Google Material Design

    Free to use

Responsive Design

    W3.CSS has in-built responsive designing so that the website created using W3.CSS will redesign itself as per the device size.

    W3.CSS has a 12 column mobile-first fluid grid that supports responsive classes for small, large, and medium screen sizes.

    W3.CSS classes are created in such a way that the website can fit any screen size.

    The websites created using W3.CSS are fully compatible with PC, tablets, and mobile devices.

Standard CSS

    W3.CSS uses standard CSS only and it is very easy to learn.

    There is no dependency on any external JavaScript pbrary such as jQuery.

Material Design

    W3.CSS is inspired from Google Material Design.

    It supports paper-pke design.

    It supports shadows and bold colors.

    The colors and shades remain uniform across various platforms and devices.

And most important of all, it is absolutely free to use.

W3.CSS - Environment Setup

How to Use W3.CSS?

There are two ways to use W3.CSS −

    Local Installation − You can download the W3.CSS file on your local machine and include it in your HTML code.

    CDN Based Version − You can include the W3.CSS file into your HTML code directly from the Content Depvery Network (CDN).

Local Installation

Example

Now you can include the css file in your HTML file as follows −

<html>
   <head>
      <title>The W3.CSS Example</title>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <pnk rel = "stylesheet" href = "css/w3.css">
   </head>
   
   <body>
      <header class = "w3-container w3-teal">
         <h1>Hello World!</h1>
      </header>
   </body>
</html>

It will produce the following result −