×

Top 15 Pure CSS Interview Questions for 2024

1) What is Pure CSS?

Pure is a CSS (Cascading Style Sheet) framework. It is a collection of small set of responsive CSS modules. We can integrate it to any web application.It is developed byJames Alley and YAHOO. It is design to create faster and responsive websites.

2) How can we use Pure CSS?

We can use Pure CSS by using two ways:
  • CDN Based Version: We can include the pure.css file into our HTML code directly from the Content Delivery Network (CDN).
  • Local Installation: We can download the pure.css file on our local machine and include it in HTML code.

3) What is Responsive Design in Pure CSS?

Responsive design is defined as following:
  • Pure has in-built responsive design. It resizes automatically as per the device size.
  • Pure has 12 columns. Mobile-first fluid supports responsive classes for small, large, and medium screen sizes.
  • Pure classes enable website to fit any screen size.
  • The websites is fully compatible with PC, tablets and mobiledevices.

4) What are the features of PureCSS?

There are various featuresof Pure CSS that are given below.
  • It is used to build responsive design.
  • It has various common table styles.
  • It has standard VSS with minimal footprint.
  • It is a set of small, responsive CSS module.
  • It is free to use.
  • Its file size is 4.5KB

5) What are the default responsive breakpoints in Pure CSS?

In Pure CSS,the default responsive breakpoints are:
KEY CSS Media Query Applies Classname
None None Always .pure-u-*
Sm @media screen and (min-width: 35.5em) ≥ 568px .pure-u-sm-*
Md @media screen and (min-width: 48em) ≥ 768px .pure-u-md-*
Lg @media screen and (min-width: 64em) ≥ 1024px .pure-u-lg-*
Xl @media screen and (min-width: 80em) ≥ 1280px .pure-u-xl-*

6) How can we use row and column in Pure CSS?

In Pure CSS, we can use row and column by using following class:
  • Column: Pure-g class is used.
  • Row: pure-u class is used.
Example:
<div class = "pure-g">  

<div class = "pure-u-1-3"><p>First Column</p></div>  

<div class = "pure-u-1-3"><p>Second Column</p></div>  

<div class = "pure-u-1-3"><p>Third Column</p></div>  

</div>

7) What are the different types of Models inPure CSS?

Pure CSS provides following models:
  • Base
  • Grid
  • Forms
  • Buttons
  • Tables
  • Menus etc.

8) How can we include Pure CSS files in HTML files?

We can include Pure CSS file in HTML files by using following steps:
<html>  

<head>  

<title>The PURE.CSS Example</title>  

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

<link rel="stylesheet" href="pure-min.css">  

      

<style>  

         .grids-example {  

background: rgb(250, 250, 250);  

margin: 2em auto;  

border-top: 1px solid #ddd;  

border-bottom: 1px solid #ddd;            

font-family: Consolas, 'Liberation Mono', Courier, monospace;  

text-align: center;                   

         }  

</style>  

</head>  

<body>  

<div class="grids-example">  

<div class="pure-g">  

<div class="pure-u-1-3"><p>First Column</p></div>  

<div class="pure-u-1-3"><p>Second Column</p></div>  

<div class="pure-u-1-3"><p>Third Column</p></div>  

</div>  

</div>  

</body>  

</html>

9) How can we create responsive image in Pure CSS?

We can create responsive image in Pure CSS by using pure-img class. Example
<imgclassimgclass="pure-img"src="purelogo.jpg"alt="html5">

10) What are the various table classes in Pure CSS?

In Pure CSS, following are the table classes.
Table classes Description
pure-table It represents a basic table with any default padding, border and an emphasized header.
pure-table-bordered It is used to draw a table with a border across rows.
pure-table-horizontal It is used to draw a table with horizontal lines.
pure-table-striped It is used to display a stripped table.
pure-table-odd It is used to create a zebra-styled effect.

11) What is Pure CSS button?

Pure CSS provides attractive and responsive buttons. Following are the button classes.
  • Pure-button: It represents a standard button.
  • Pure-button-disabled: Itrepresents a disabled button and it is used along with pure-button.
  • pure-button-active: It represents a pressed button and it is used along with along with pure-button.

12) How can we create horizontal menu in pure CSS?

In Pure.CSS, we can create horizontal menu by using following steps:
<div class="pure-menu pure-menu-horizontal">  

<a href="#" class="pure-menu-heading pure-menu-link">BRAND</a>  

    <ul class="pure-menu-list">  

        <li class="pure-menu-item"><a href="#" class="pure-menu-link">News</a></li>  

        <li class="pure-menu-item"><a href="#" class="pure-menu-link">Sports</a></li>  

        <li class="pure-menu-item"><a href="#" class="pure-menu-link">Finance</a></li>  

    </ul>  

</div>

13) What are the form classes in PureCSS?

Pure CSS form classes are tabled below.
Form class Descriptions
Pure-form It is used to represent a compact inline form.
Pure-form-stacked It is used to representfrom with input element.
Pure-form-aligned It is used to represent an aligned from with input elements.
Pure-input-rounded It is used to display a form control with rounded corners.
Pure-button It is used to create attractive button.
Pure-checkbox It is used to create a checkbox.
Pure-radio It is used to create a radio button.

14) What are the icons Libraries supported by Pure CSS?

Pure CSS supports following icon libraries that are:
  • Font Awesome Icons
  • Google Material Icons
  • Bootstrap Icons

15) What are the browsers supported by Pure CSS?

Pure CSS supports following updated browsers that are given below:
  • IE 8+
  • Latest Stable: Firefox, Chrome and Safari

Related Topics

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

1) What is TypeScript? TypeScript is an object-oriented and compiled language. TypeScript is also known as a set of tools. TypeScript is used for application-scale development. 2) What are the features of TypeScript? Features of...

4 minutes read.

Top 30 D Programming Language Interview Questions for 2024

1) What is D programming language? D programming language is an object oriented programming language. It is created by Walter Bright of Digital Mars. It was released in 2001. 2) Who is the...

4 minutes read.

Django Interview Questions for 2024

Django is an open-source python web framework. It is very popular due to the functionalities it offers. It uses the Model-View-Template architecture. Many giant organizations are using Django as their...

10 minutes read.

Top 15 Hadoop Interview Questions for 2024

1) What is Hadoop? Hadoop is a framework which is used to store and process Big Data. It is a distributed computing platform and helps in analyzing Big Data. 2) What are the...

2 minutes read.

Top 18 UiPath Interview Questions for 2024

RPA UiPath Interview Questions and Answers for Fresher  1. What is RPA? RPA is an acronym for Robotic Process Automation. Robotic In RPA, Robotic is termed as an entity or machine which tries to...

7 minutes read.

Top 25 MySQL Interview Questions for 2024

1) What is MySQL? MySql is defined as multi-user DBMS which is built and distributed my MySQLab now acquired by Oracle Co. 2) Enlist the features of MySQL. Cross-Platform Support Wide range...

3 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 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 30 SQLite Interview Question for 2024

1) What is SQLite? It is an in-process library which implements self-contained, serverless, zero-configuration, transactional SQL database. 2) What datatype does SQLite supports? It uses dynamic typing and data can be stored in...

5 minutes read.

Top 30 Python Interview Questions for 2024

1) What is Python? Python is a high level, interpreted and object-oriented programming language. It is easy to learn and supports multiple programming patterns. It is also known as powerful and versatile...

6 minutes read.

Top 25 MongoDB interview Questions for 2024

1) Give some history about MongoDB. MongoDB came into existence when data increased exponentially on the internet. Thus, maintainence of database became very difficult in structured DB. MongoDB is a NoSQL...

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

1) What is AWS? AWS stands for Amazon Web Services. It is a cloud web hosting platform that offers flexible, scalable, reliable, easy-to-use, and cost-effective solutions. 2) What is Cloud Computing? It is...

2 minutes read.

Top 30 Drupal Interview Questions for 2024

1) What is Drupal? Drupal is an open source CMS (Content Management System) framework. It is written in php and provides rich set of tools to create web sites. 2) What are...

4 minutes read.

Top 14 Web icon Interview Questions for 2024

1) What is Web Icon? Web Icon is a symbol that is used to represent a specific action or a capability on a webpage. It is used in documents as well...

5 minutes read.

Top 16 Ionic Interview Questions for 2024

Top 20 Ionic Interview Questions and Answers for Freshers 1) What is Ionic framework? Ionic is open source HTML5 framework used for hybrid mobile application development. It provides tools and services for...

3 minutes read.

Top 18 Blockchain Interview Questions and Answers for 2024

Top 20 Commonly Asked Blockchain Interview Questions and Answers 1. What do you understand by Blockchain? Blockchain is a chain of blocks made up of digital pieces of information or can be defined as...

6 minutes read.

Top 30 Flex Interview Questions for 2024

1) What is Flex? Flex is an open source framework which is used to build applications for mobile, browser and desktop. It provides FLEX SDK consisting of the Flex class library, Flex...

4 minutes read.