×

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 Foundation Interview Questions for 2024

1) What is Foundation? Foundation is a front-end framework that is for designing beautiful responsive websites. This framework is compatible with all types of devices and provides you with HTML, CSS...

2 minutes read.

Top 15 Cordova Interview Questions for 2024

Top 20 Cordova Interview Questions and Answers for Freshers 1) What is Cordova? Cordova is a mobile application development framework. Cordova allows building mobile application using HTML5, CSS3, and JavaScript. Cordova is...

3 minutes read.

Top 30 SASS Interview Questions for 2024

1) What is Sass? SASS: Systematically Awesome Style Sheets is an extension of CSS. It is also known as CSS pre-processor which helps to reduce repetition with CSS and saves time. It is...

4 minutes read.

Top 15 Java BeanUtils Interview Questions for 2024

1) What is Java BeanUtils? Java BeanUtils is a design pattern component of the Apache Commons. It facilitates architecture for Java language which is derived from JavaAPI. It helps to set...

3 minutes read.

Top 13 SAS Interview Questions for 2024

1. What is SAS and its functions? SAS (Statistical Analysis System) is statistical software designed by SAS Institute in 1960 for data inspection and report writing. SAS runs on Windows, UNIX...

5 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 32 Laravel Interview Questions for 2024

1) What is Laravel? Laravel is an open source PHP framework. It is used to design and develop web applications. It is based on MVC (Model-View-Controller) design pattern. It is created by Taylor...

6 minutes read.

Top 14 MathML Interview Questions for 2024

1) What is MathML? MathL stands for Mathematical Markup Language. It is extended form of XML. It is used to describe mathematical and scientific notations. 2) Who is the developer of MathML? World...

3 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 20 Java Programming Coding Interview Questions for 2024

Coding is an integral part of any programming language. It is the most important phase of an interview. Interviewee checks the capability of thinking of any particular. I think one...

13 minutes read.

Top 15 JCL (Job Control Language) Interview Questions for 2024

1) What is JCL? JCL refers to Job Control Language. It is a command language which describes job (unit of work) for the Multiple Virtual Storage (MVS) operating system. It is...

3 minutes read.

Top 30 Less Interview Questions for 2024

1) What is Less? Less is a dynamic style sheet language that can be compiled in to CSS (Cascading style Sheet). It runs on client side and server side. It is...

4 minutes read.

Top 28 Prototype Interview Questions for 2024

1) What is Prototype? Prototype is a JavaScript framework which is used in dynamic web applications. It is a namespace and a module that is used to manage HTML forms. It is also...

4 minutes read.

Symfony PHP Framework Interview Questions

1) What is Symfony? Symfony is an open source, web application framework. It is written in PHP and used to design PHP applications. It was first released on18 October, 2005. 2) What...

5 minutes read.

Top 10 GWT Interview Questions for 2024

1) What is Google Web Toolkit (GWT)? GWT (Google Web Toolkit) is a development toolkit. It is used to develop Ajax web applications using Java. GWT compiler translates Java sour ce...

2 minutes read.

Top 28 Scala Interview Questions for 2024

1) What is Scala? Scala is a functional and object-oriented programming language. It is used to develop web application, mobile application, enterprise application, desktop based application etc. Everything in Scala is in object...

4 minutes read.

Top 15 Euphoria Interview Questions for 2024

1) What is Euphoria? Euphoria is a programming language. It is open source, powerful and easy to learn. It stands for End-User Programming with Hierarchical Objects for Robust Interpreted Applications 2) Who...

2 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 15 C Interview Questions for 2024

1) What are different storage class specifiers in C? Register,auto, static, extern are the storage class specifiers in C. 2) What is scope of a variable? How are variables scoped in C? Scope...

3 minutes read.

Top 30 JSF Interview Questions for 2024

1) What is JSF? JSF stands for Java Server Faces is a Java-Based web application framework. JSF (Java Server Faces) provides a facility to connect UI widgets with data sources. 2) What are...

4 minutes read.