AngularJS and W3.CSS

What is W3.CSS?

  • W3.CSS is a modern framework with built-in reponsiveness and easy to learn and use compared to other CSS framework.
  • Its aim is to speed up and simplify web developement and support modern responsive devices like Mobile, Laptop, Tablet and Desktop
  • W3.CSS was designed to be a high quality alternative to Bootstrap and is developed by

What is angularJS?

  • AngularJS is a structural framework for dynamic web apps which extends HTML with new attributes.
  • It provides automated testing and is perfect for single page application
  • It gives application a clean structure and lot of reusable code.

Most important part of W3.CSS :

  1. w3-container: adds a 16px left and right padding to any HTML element.
  2. w3-fontSize : w3-tiny, w3-small, w3-medium(default), w3-large, w3-xlarge, w3-xlarge, w3-xxlarge, w3-xxxlarge, w3-jumbo.
  3. w3-text: It provides css features like alignment, opacity, shadow, special effect.
  4. w3-input: It provides input cards, coloured labels, border, checkbox, radio buttons, etc






<!DOCTYPE html>
    <link rel="stylesheet" 
    <script src=
    .pad {
        margin: 0 0 0 0;
<body ng-app="myApp" ng-controller="myCtrl">
    <div class="w3-container ">
    <p class="w3-jumbo w3-text-green pad" 
    <p class="w3-large w3-text-green pad" 
       align="center" >
     A computer science portal for geeks</p>
        <h3 align="center" > Enter user details </h3>
        <label>First Name:</label>
        <input class="w3-input w3-border w3-round-xxlarge" 
               placeholder="First Name"></br>
        <label>Last Name:</label>
        <input class="w3-input w3-border  w3-round-xxlarge"
               placeholder="Last Name"></br>
        <label>Email id:</label>
        <input class="w3-input w3-border  w3-round-xxlarge"
               placeholder="Email id"></br>
        <input class="w3-input w3-border  w3-round-xxlarge"
        <p align="center"
        <button class="w3-btn w3-green w3-ripple " >
              Save </button></p>
        var app = angular.module('myApp', []);
        app.controller('myCtrl', function($scope) {
              $scope.fname = "Fname";
              $scope.lname = "Lname";
              $scope.mail = "";
              $scope.pass = "password";



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.