Skip to content
Related Articles

Related Articles

Materialize CSS Introduction and Installation

View Discussion
Improve Article
Save Article
Like Article
  • Difficulty Level : Basic
  • Last Updated : 24 Mar, 2022

Materialize is a design language that combines the classic principles of successful design along with innovation and technology. Materialize is created and designed by Google. Google’s goal is to develop a system of design that allows for a unified user experience across all its products on any platform.


  • It is Easier to use.
  • It make the web-pages dynamic and responsive.
  • It make the web-page which is compatible in Mobile, Tablets, Laptop as well.
  • Freely available on

Installing Materialize: There are following two ways to install materialize.

Method 1: Go to the official documentation of the Materialize CSS and download the latest version available. After that put the downloaded materialize.min.js and materialize.min.css file in a directory of your project.

Method 2: You can also install it using the CDN versions. Include the following CDN links inside the script tag.

<!– Compiled and minified CSS –>
<link rel=”stylesheet” href=“”>

<!– Compiled and minified JavaScript –>
<script src=“”></script>

Now let’s understand the working of Materialize using an example.

Example: The below example shows the implementation of dialogs in Materialize CSS.


<!DOCTYPE html>
    <link rel="stylesheet"
    <script type="text/javascript"
    <script src=
        function Toast1(string, timeLength) {
                '<em>' + string + '</em>', timeLength
        function Toast2(string, timeLength) {
                '<b>' + string + '</b>', timeLength, 'rounded'
        function Toast3(string, timeLength) {
                '<u>' + string + '<u>', timeLength
    <body class="container">
        <a class="btn" onclick=
            "Toast1('Emphasized Alert!', 1500)">
            Emphasized Alert!!
        <a class="btn" onclick=
            "Toast2('Bold N rounded Alert!', 1500)">
            Bold N rounded Alert!!
        <a class="btn" onclick=
            "Toast3('Underlined Alert!', 1500)">
            Underlined Alert!!


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!