AngularJS and W3.CSS - GeeksforGeeks

27 Oct, 2021
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 development 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 w3school.com
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 :
w3-container: adds a 16px left and right padding to any HTML element.w3-fontSize : w3-tiny, w3-small, w3-medium(default), w3-large, w3-xlarge, w3-xlarge, w3-xxlarge, w3-xxxlarge, w3-jumbo.w3-text: It provides css features like alignment, opacity, shadow, special effect.w3-input: It provides input cards, coloured labels, border, checkbox, radio buttons, etc
w3-container: adds a 16px left and right padding to any HTML element.
w3-fontSize : w3-tiny, w3-small, w3-medium(default), w3-large, w3-xlarge, w3-xlarge, w3-xxlarge, w3-xxxlarge, w3-jumbo.
w3-text: It provides css features like alignment, opacity, shadow, special effect.
w3-input: It provides input cards, coloured labels, border, checkbox, radio buttons, etc
Example:
html
<!DOCTYPE html><html><head>    <link rel="stylesheet"          href="https://www.w3schools.com/w3css/4/w3.css">    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js">    </script>    <style>     .pad {        margin: 0 0 0 0;    }    </style> </head> <body ng-app="myApp" ng-controller="myCtrl">     <div class="w3-container ">         <p class="w3-jumbo w3-text-green pad"       align="center">GeeksforGeeks</p>         <p class="w3-large w3-text-green pad"       align="center" >     A computer science portal for geeks</p>     <form>             <h3 align="center" > Enter user details </h3>             <label>First Name:</label>        <input class="w3-input w3-border w3-round-xxlarge"               type="text"               ng-model="fname"                placeholder="First Name"></br>             <label>Last Name:</label>        <input class="w3-input w3-border  w3-round-xxlarge"               type="text"               ng-model="lname"                placeholder="Last Name"></br>             <label>Email id:</label>        <input class="w3-input w3-border  w3-round-xxlarge"               type="email"               ng-model="mail"               placeholder="Email id"></br>             <label>Password:</label>        <input class="w3-input w3-border  w3-round-xxlarge"               type="password"               ng-model="pass"                placeholder="Password"></br>             <p align="center">        <button class="w3-btn w3-green w3-ripple " >              Save </button></p>      </form>     <script>        var app = angular.module('myApp', []);        app.controller('myCtrl', function($scope) {              $scope.fname = "Fname";              $scope.lname = "Lname";              $scope.mail = "user@geeksforgeeks.com";              $scope.pass = "password";        });    </script></body></html>
Output:
GeeksforGeeks login page
ruhelaa48
AngularJS-Misc
Picked
AngularJS
Web Technologies
Writing code in comment?
Please use ide.geeksforgeeks.org,
generate link and share the link here.
Angular File Upload
Top 10 Angular Libraries For Web Developers
Angular | keyup event
Auth Guards in Angular 9/10/11
What is AOT and JIT Compiler in Angular ?
Roadmap to Become a Web Developer in 2022
Installation of Node.js on Linux
How to fetch data from an API in ReactJS ?
Top 10 Projects For Beginners To Practice HTML and CSS Skills
Convert a string to an integer in JavaScript