Difference Between CSS and Bootstrap
Last Updated :
14 Feb, 2022
Cascading Style Sheet(CSS): CSS is developed by Hakon Wium, Bert Bos, World Wide Web 17 December 1996. It is a language used to describes how HTML elements are to be displayed on a web page or layout of HTML documents like fonts, color, margin, padding, Height, Width, Background images, etc. CSS stands for Cascading Style Sheet, here Cascading refers to Section in which we apply Style procedure, and Style refers to color, Margin, font for table paragraphs, and Heading, etc. Sheet refers to how web pages look. In CSS we can change the look and layout of webpages by editing a single CSS file.
There are three types of CSS.
- Inline CSS
- Internal CSS
- External CSS
Example: This example describes the use of simple CSS properties.
html
<!DOCTYPE html>
<html>
<head>
<style>
p {
color: red;
text-align: center;
}
</style>
</head>
<body>
<p>Geeksforgeeks</p>
<p>
A Computer Science
portal for Geeks
</p>
</body>
</html>
Output:
Bootstrap: Bootstrap is the most popular open-source front-end framework. It is developed by Mark Otto, Jacob Thornton 19 August 2011. Bootstrap is a collection of CSS classes and JavaScript function and it is used for responsive design and building responsive, mobile-first site and application. It generally works on a grid system for creating page layout with the help of rows and columns and it supports all browsers for creating responsive websites.
Example:
html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Color Example</title>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width,
initial-scale=1">
<link rel="stylesheet" href=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<script src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js">
</script>
<script src=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js">
</script>
</head>
<body>
<div class="container">
<h2>Bootstrap Colors List</h2>
<ul>
<li class="text-muted">GeeksforGeeks</li>
<li class="text-primary">GeeksforGeeks</li>
<li class="text-success">GeeksforGeeks</li>
<li class="text-info">GeeksforGeeks</li>
<li class="text-warning">GeeksforGeeks class</li>
<li class="text-danger">GeeksforGeeks</li>
<li class="text-secondary">GeeksforGeeks</li>
<li class="text-white">GeeksforGeeks</li>
<li class="text-dark">GeeksforGeeks</li>
</ul>
</div>
</body>
</html>
Output:
Difference between CSS and Bootstrap:
Cascading Style Sheet(CSS) |
Bootstrap |
CSS is developed by Hakon Wium Lie, Bert Bos, World Wide Web 17 December 1996. |
Bootstrap is developed by Mark Otto, Jacob Thornton 19 August 2011. |
CSS represent the style and the appearance of content like font, color, margin, padding, etc. |
Bootstrap is a free and open-source CSS Framework that is used for developing responsive website. |
CSS does not have a grid system. |
Bootstrap is based on-grid system. |
It currently working on CSS3 which is the latest version of CSS. |
Bootstrap currently working on Bootstrap 5 which is the latest version of Bootstrap. |
CSS does not provide responsive pages or website. |
In Bootstrap we can design a responsive website or webpages. |
CSS is more complex than Bootstrap because there is no pre-defined class and design. |
Bootstrap is easy to understand and it has much pre-design class. |
In CSS, we have to write code from scratch. |
In Bootstrap, we can add pre-defined class into the code without writing code. |
Similar Reads
Difference between HTML and Bootstrap HTML stands for HyperText Markup Language. It is a standard markup language for creating webpages. It describes the structure of webpages. HTML is a basic building block of a website. It has different attributes and elements with different properties. HTML consists of a series of elements, which you
4 min read
Difference between CSS and CSS3 CSS (Cascading Style Sheets) is a stylesheet language used to style web pages, while CSS3 is its advanced version with new features and modules. CSS3 introduces enhanced styling capabilities like animations, transitions, media queries, and rounded corners, providing more flexibility and functionalit
4 min read
Difference Between Bootstrap 3 and Bootstrap 4 Bootstrap: Bootstrap was developed by Mark Otto and Jacob Thorton at Twitter in August 2011. It is an open-source framework that is used to design responsive websites faster and easier. It is the most popular open-source framework that includes HTML, CSS, and JavaScript. It can create web applicatio
2 min read
Difference between React.js and Bootstrap React JS is a JavaScript library for creating user interfaces while Bootstrap is a framework having pre-designed and styled components to create responsive UI. React dynamically builds the structure and Bootstrap add the format and styling to the components. What is React.js?ReactJS is a JavaScript
2 min read
Difference between Bootstrap 4 and Bootstrap 5 What is Bootstrap? It is an open-source framework from late 2011 that is used for designing responsive websites with a mobile-first approach faster and easier. Bootstrap is available for HTML, CSS, and JS. According to server-side languages like PHP, Node, etc. bootstrap helps to design the frontend
3 min read