×

Top 14 Materialize CSS Framework Interview Questions for 2024

1) What is Materialize?

Materialize is a CSS framework that contains library file. It is created with CSS, JavaScript and HTML. It helps to create attractive, reliable and functional web pages and web apps. It was released on 8 November 2015.

2) What are the features of Materialize?

There are various features of Materialize that are given below:
  • It is in-built responsive design.
  • It is standard CSS with minimal footprint.
  • It includes new versions of common UI controls. such as buttons
  • It provides feature like cards, tabs, navigation bars, toasts, and so on.
  • It requires jQuery, JavaScript library to function properly.
  • It helps to create reusable web component.
  • It is free to use.

3) How can we use Materialize?

We can use Materialize in two ways:
  • Local Installation - we can download the materialize.min.css and materialize.min.js files on our local machine and include it in our HTML code.
  • CDN Based Version - we can include the materialize.min.css and materialize.min.js files into our HTML code directly from the Content Delivery Network (CDN).

4) What are the Materialize project setup directories?

Materialize project setup directory are given below.
MyWebsite/  

  |--css/  

  |  |--materialize.css  

  |  

  |--fonts/  

  |  |--roboto/  

  |  

  |--js/  

  |  |--materialize.js  

  |  

  |--index.html

5) What are the utility classes in Materialize?

Materialize provides different utility classes that are given below:
  • Color utility classes - Examples: .red, .green, .grey etc.
  • Alignment utility classes - Examples: .valign-wrapper, .left-align, .right-align, .center-align, .left, .right etc.
  • Hiding Content utility classes as per device size - Examples: .hide, .hide-on-small-only, .hide-on-med-only etc.
  • Formatting utility classes - Examples: truncate, hoverable etc.

6) What are the classes to create responsive image and video in Materialize?

There are following classes to create responsive and video that are listed table:
  • responsive-img: This class is used to create an responsive image.
  • video-container: It is used to create responsive container. That has embedded videos.
  • responsive-video: It is used to create HTML5 videos responsive.

7) What are the classes of table in Materialize?

Materialize provides different types of classes that are given below:
Class Name Description
None It is used to represents a basic table without any border.
stripped It is used to display a stripped table.
bordered It is used to create border in table.
highlight It is used to highlight the table.
centered It is used to create all the text in center aligns.
responsive-table It is used to create responsive table

8) What are Badges and its class in Materialize?

A badge is a component that provides an onscreen notification. It can be a number or icon. It is used to emphasize the number of items. The following classes of Badges are:
  • badge: It identifies element as an MDL badge component.
  • new: It is used to add a new class to badge component.

9) What is the class of BreadCrumb in Materialize?

Materialize provides two classes that are:
  • nav-wrapper: It is used to set the nav component as breadcrumb/nav bar wrapper.
  • breadcrumb: It is used to set the anchor element as breadcrumb.

10) What is Chip in Materialize?

Chip is component of Materialize that represent small set of information. Like: a contact, tag etc. Example:
<!DOCTYPE html>  

<html>  

   <head>  

      <title>The Materialize Chips Example</title>  

      <meta name="viewport" content="width=device-width, initial-scale=1">        

      <link rel="stylesheet"   

      href="https://fonts.googleapis.com/icon?family=Material+Icons">  

      <link rel="stylesheet"   

      href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">  

      <script type="text/javascript"   

      src="https://code.jquery.com/jquery-2.1.1.min.js"></script>             

      <script   

      src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>   

   </head>  

   <body class="container">         

         <div class="chip">             

            <img alt="HTML5" src="html5-mini-logo.jpg">HTML 5              

         </div>  

         <div class="chip">             

            HTML 5<i class="material-icons">close</i>  

         </div>          

   </body>     

</html>

11) What are Collections and its classes of Materialize?

Collection is a group of related information items. There are following Collections classes table listed below.
Class Name Description
collection It is used to set the div or ul container as collection.
collection-item It is used to set the a or li item as collection item.
active It shows the a or li item as active collection item.
with-header It is used to mark the collection to have header.
collection-header It is a set the a or li item as collection header.
avatar It is a set the a or li item as avatar item.
dismissible It enables collection items to be swiped away. Works on touch screen devices only.

12) How to we create Pagination in Materialize?

In Materialize, we can create Pagination by using pagination class. Its class is used with ul element. Example:
<ul class="pagination">  

   <li class="disabled"><a href="#!"><i class="material-icons">chevron_left</i></a></li>  

   <li class="active"><a href="#!">1</a></li>  

   <li class="waves-effect"><a href="#!">2</a></li>  

   <li class="waves-effect"><a href="#!">3</a></li>  

   <li class="waves-effect"><a href="#!">4</a></li>  

   <li class="waves-effect"><a href="#!">5</a></li>  

   <li class="waves-effect"><a href="#!"><i class="material-icons">chevron_right</i></a></li>  

    </ul>

13) What do you mean by Dialogs in materialize?

Materialize provides various method to show unremarkable alerts. It also provides a term toast form them. Following is given syntax:
  1. Materialize.toast(message, displayLength, className, completeCallback);
Where
  • message: It is used to displayed Message to the user.
  • displayLength: Duration of the message after it will disappear.
  • className: Style class to be applied to the toast. For example, 'rounded'.
  • completeCallback: This Callback method to be called once toast is dismissed.

14) What are the Materialize classes of Dropdowns?

Materialize provides two dropdown classes that are given below:
  • dropdown-content: It Identifies <u> HTML tag as an materialize dropdown component.
  • data-activates: It is id of the dropdown ul element.
Example:
<body class="container">   

      <h3>Drop Down Demo</h3>  

      <ul id="dropdown" class="dropdown-content">  

         <li><a href="#">Inbox<span class="badge">12</span></a></li>  

         <li><a href="#!">Unread<span class="new badge">4</span></a></li>  

         <li><a href="#">Sent</a></li>  

         <li class="divider"></li>  

         <li><a href="#">Outbox<span class="badge">14</span></a></li>  

      </ul>  

      <a class="btn dropdown-button" href="#" data-activates="dropdown">Mail Box  

      <i class="mdi-navigation-arrow-drop-down right"></i></a>       

   </body>

Related Topics

Top 15 Apache Tapestry Interview Questions for 2024

1) What is Apache Tapestry? It is an open source web framework written in Java and can work under any application server. It is easily integrate with back ends like Hibernate...

2 minutes read.

Top 30 Cobol Interview Questions for 2024

1) What is COBOL? COBOL is a programming language which is used for finance, business and administrative systems for companies. COBOL is stands for Common Business Oriented Language. 2) What are the features...

4 minutes read.

Top 15 JavaFX Interview Questions for 2024

1) What is JavaFX? JavaFX is a software platform for creating desktop applications or internet application. It uses java library. It can run various devices such as Desktop Computer, Mobile, TVs...

3 minutes read.

Top 15 PouchDB Interview Questions for 2024

1) What is PouchDB? PouchDB is an in-browser database that allows applications to save data. It is an open source database. It runs in Node.js. 2) In which language PouchDB was written? PouchDB was written in JavaScript language. 3)...

2 minutes read.

PhoneGap Interview Questions 2024

Top 50 Phonegap Interview Questions with their Answers Once you have acquired practical knowledge of the PhoneGap technology, you will now be able to search for a job as a mobile...

9 minutes read.

Top 43 React Native Interview Questions for 2024

1. What is React Native? React native is an open-source JavaScript framework designed by Facebook for native mobile applications development. It is based on a JavaScript library-React. React Native saves your development...

11 minutes read.

Top 15 Electron Interview Question for 2024

1) What is Electron? Electron is an open source library developed by Github. It is used to develop cross platform desktop application. 2) Which technology Electron uses? Electron uses Chromium and Node.js with...

3 minutes read.

Top 25 CoffeeScript Interview Questions for 2024

1) What is CoffeeScript? It is a language that compiles into JavaScript. CoffeeScript is an attempt to expose good parts of JavaScript so, that user can code more easily. 2) Name the...

3 minutes read.

Top 30 AJAX Interview Questions for 2024

1) What is AJAX? AJAX (Asynchronous JavaScript and XML) create better, faster and interactive web-apps. It provides data transfer between web-server and browser. 2) List some advantages of AJAX Advantages are: More Interactive: Very...

3 minutes read.

Top 31 CakePHP Interview Questions for 2024

1) What is CakePHP? CakePHP is an open-source PHP framework. It is used to develop dynamic web applications. It helps to developers to work in a structured manner. 2) When cakePHP was...

5 minutes read.

Top 40 IoT Interview Questions and Answers in 2024

Q.1 What is IoT? IoT stands for the Internet of things refers to the interconnection of the network of various devices that can recognize, collect and transfer data over the internet...

13 minutes read.

Top 15 iOS (iPhone, iPad) Interview Questions for 2024

Top 20 Most Frequently asked iOS Interview Questions and Answers 1) What is iOS? iOS is a mobile operating system developed by Apple Inc. iOS offers iPhone and iPad application development using...

3 minutes read.

Top 27 JavaScript Interview Questions for 2024

1) Define Undeclared and Undefined Variables? Undeclared variable are defined as these variable is neither defined nor exist in the program. If program calls this variable then it causes Runtime error. Undefined variable...

5 minutes read.

Top 16 OpenStack Interview Questions for 2024

Most Frequently Asked OpenStack Interview Questions and Answers for Freshers 1. Describe OpenStack. OpenStack is designed as the future of cloud computing and developed as free and open-source software that facilitates a...

8 minutes read.

Top 14 Material Design Lite Interview Questions for 2024

1) What is Material Design Lite? Material Design Lite is UI component Library. It is created with CSS, JavaScript and HTML. It is used for design purpose. It is developed by...

3 minutes read.

Top 30 PyTorch Interview Questions and Answers

Q1: What is PyTorch? Answer: PyTorch is a machine learning library for the programming language Python, based on Torch library, used for application such as natural language processing. It is free...

9 minutes read.

Top 15 PostgreSQL Interview Questions for 2024

1) What is PostgreSQL? PostgreSQL is a most advance open source database system. PostgreSQL is an object Oriented Relational Database Management System (ORDBMS). PostgreSQL source code is available free of charge...

3 minutes read.

Top 14 Elixir Interview Questions for 2024

1) What is Elixir? Elixir is a dynamic, functional language. It is designed to build scalable and maintainable applications. 2) Who developed Elixir? Ericsson developed elixir in 1986. 3) What is the stable version of...

2 minutes read.

Top 50 ReactJS Interview Questions for 2024

Top 50 Frequently asked ReactJS Interview Questions Q-1. What is React? Ans-1 React is a front-end JavaScript library which is developed by Facebook in 2011. It follows the component-based approach and allows us to...

15 minutes read.

Top 15 KnockoutJS Interview Questions for 2024

1) What is KnockoutJS? It is a JavaScript library which is based on MVVM pattern that helps developers in building rich and responsive websites. 2) Who is the author of KnockoutJS? Steve Sanderson is...

2 minutes read.