{"id":1806,"date":"2021-06-14T13:19:00","date_gmt":"2021-06-14T10:19:00","guid":{"rendered":"https:\/\/html-online.com\/articles\/?p=1806"},"modified":"2025-02-04T20:05:17","modified_gmt":"2025-02-04T18:05:17","slug":"difference-between-bootstrap-4-and-5","status":"publish","type":"post","link":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/","title":{"rendered":"The Difference Between Bootstrap 4 and Bootstrap 5?"},"content":{"rendered":"<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/getbootstrap.com\/\">Bootstrap<\/a> is a popular open-source framework used to design responsive websites easier and faster with the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.searchenginejournal.com\/google-mobile-first-indexing\/346170\/\">mobile-first approach<\/a>. It is available for <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/html-css-js.com\/\">CSS, JS, and HTML<\/a> and it\u2019s believed to help the frontend design by server-side languages such as <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/nodejs.org\/en\/\">Node<\/a> and <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.php.net\/\">PHP<\/a>.<\/p>\n<p><!--more--><\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg\" alt=\"laptop on desk\"><\/p>\n<p>Bootstrap has successfully made the developer\u2019s work easier by creating <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/html5-templates.com\/preview\/bootstrap.html\">ready templates<\/a> essential for every website. Hence people don\u2019t waste time with basic templates. They develop further with <a href=\"\/articles\/important-things-consider-building-responsive-web-design\/\">responsiveness<\/a> and beautiful designs.<\/p>\n<p>Bootstrap developers always seek to enrich the experience of developers using Bootstrap to customize web pages more easily. The developers have released several major and minor versions, but the most popular ones are <strong>Bootstrap v4.x <\/strong>and <strong>Bootsrap v5.x<\/strong>. This article seeks to discuss the difference between both Bootstrap versions.<\/p>\n<h2>Main Differences Between Bootstrap 4 and Bootstrap 5<\/h2>\n<p>Bootstrap 5 has several improvements and upgrades that Bootstrap 4 lacks, and some of these upgrades are discussed in this section:<\/p>\n<h3>Extended color palette<\/h3>\n<p>One of the limitations of Bootstrap 4 is that the <a href=\"\/articles\/rgb-color-code-picker\/\">color options<\/a> are limited. However, on Bootstrap 5, there are more color options added to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/rgbcolorcode.com\/\">the color palette<\/a>. This ensures that developer can choose from several available shades of color.<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2015\/11\/adobe-color-wheel.jpg\" alt=\"adobe-color-wheel\"><\/p>\n<h3>jQuery Deprecation<\/h3>\n<p><a href=\"\/articles\/category\/jquery\/\">jQuery<\/a> has been used by Bootstrap as a dependency from the beginning to offer several dynamic features such as dropdowns \u2b9f, carousel \ud83c\udfa0, and menu \u2261 expansion.<br \/>\nHowever, many developers didn&#8217;t like the forced dependency on jQuery as they preferred to use Bootstrap alongside modern <a href=\"\/articles\/javascript-frameworks-for-front-end-development\/\">JavaScript frameworks<\/a> like Vue.js and React. Therefore, Bootstrap 5 drops jQuery and removes the forced dependency.<\/p>\n<p class=\"aligncenter\"><a href=\"\/articles\/information-you-need-to-know-about-web-frameworks\/\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2020\/04\/web-frameworks.jpg\" alt=\"web frameworks\" class=\"aligncenter\"><\/a><\/p>\n<p>However, it&#8217;s important to note that this doesn&#8217;t imply that Bootstrap 5 doesn&#8217;t have any JavaScript dependency. Several behaviors with Bootstrap 5, such as slider, drop-down, popover, etc., depending on Popper and its vanilla JavaScript module. While you&#8217;re not required to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/htmlcheatsheet.com\/jquery\/\" title=\"jQuery CheatSheet\">add jQuery<\/a>, you&#8217;re still allowed to add it if you&#8217;re working on a project that depends on it.<\/p>\n<h3>Floating Labels<\/h3>\n<p>The Bootstrap 5 version also supports <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/getbootstrap.com\/docs\/5.0\/forms\/floating-labels\/\">floating Labels<\/a> for the input fields <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/html-css-js.com\/html\/tags\/#form\">in forms<\/a>. This means that you can use the form-floating class to ensure a floating label is enabled. After entering some values into the input fields, they automatically adjust their position to the floated area.<\/p>\n<pre style=\"color: #000000; background: #ffffff;\"><span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #800000; font-weight: bold;\">form<\/span><span style=\"color: #274796;\"> <\/span><span style=\"color: #074726;\">class<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"form-floating\"<\/span><span style=\"color: #a65700;\">&gt;<\/span>\n  <span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #800000; font-weight: bold;\">input<\/span><span style=\"color: #274796;\"> <\/span><span style=\"color: #074726;\">type<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"email\"<\/span><span style=\"color: #274796;\"> <\/span><span style=\"color: #074726;\">class<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"form-control\"<\/span><span style=\"color: #274796;\"> <\/span><span style=\"color: #074726;\">id<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"floatingInputValue\"<\/span><span style=\"color: #274796;\"> <\/span><span style=\"color: #074726;\">placeholder<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"name@html-online.com\"<\/span><span style=\"color: #274796;\"> <\/span><span style=\"color: #074726;\">value<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"test@example.com\"<\/span><span style=\"color: #a65700;\">&gt;<\/span>\n  <span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #800000; font-weight: bold;\">label<\/span><span style=\"color: #274796;\"> <\/span><span style=\"color: #074726;\">for<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"floatingInputValue\"<\/span><span style=\"color: #a65700;\">&gt;<\/span>Input with value<span style=\"color: #a65700;\">&lt;\/<\/span><span style=\"color: #800000; font-weight: bold;\">label<\/span><span style=\"color: #a65700;\">&gt;<\/span>\n<span style=\"color: #a65700;\">&lt;\/<\/span><span style=\"color: #800000; font-weight: bold;\">form<\/span><span style=\"color: #a65700;\">&gt;<\/span>\n<\/pre>\n<h3>Browser support<\/h3>\n<p>Bootstrap 4 supported Internet Explorer 10 and 11. However, there\u2019s no such support for Internet Explorer on Bootstrap 5.&nbsp;It&#8217;s understandable since Microsoft has moved its effort towards Edge browser. Edge now uses the open source chromium engine, so it has the modern CSS and JavaScript features that the latest versions of Firefox and Chrome have.<\/p>\n<p class=\"aligncenter\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/pranx.com\/windows-xp-simulator\/\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2017\/02\/nerdy-prank.jpg\" alt=\"old windows xp internet explorer\"><\/a><\/p>\n<p>Hence, the Bootstrap team dropped its support for Internet Explorer in the Bootstrap 5 version so that they can provide modern features, such as faster JavaScript, better APIs, and CSS variables.<\/p>\n<h3>Bootstrap Icons<\/h3>\n<p>The former Bootstrap version didn\u2019t have a library for SVG icons. Developers had to settle for third-party libraries such as <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/fontawesome.com\/\">Font Awesome<\/a> to enable them use icons. However, this issue has been handled in Bootstrap 5, with its SVG library having over 1000 icons. The latest version release of this icon library is also present in the web font version.<\/p>\n<p class=\"aligncenter\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/texteditor.com\/\"><strong>( \u0361~ \u035c\u0296 \u0361\u00b0)&nbsp; &nbsp;\u2713 \u2714 \u237b \ud83d\uddf8 \u2717 \u2718 \ud800\udd02 \u274c \u274e<\/strong><\/a><\/p>\n<h3>RTL Support<\/h3>\n<p>The RTL (Right-to-Left) support is also a new addition to Bootstrap 5. This allows you to develop the type of content that you need to write from the right-hand side of your page to the left-hand side. Consequently, it&#8217;s now easy to develop websites in certain languages such as Arabic, Urdu, Persian, Pashto and Sindhi.&nbsp;To write in these languages, you have to go from right to left on the page, hence it demands a specific style setting to accommodate your overall design.<\/p>\n<pre style=\"color: #000000; background: #ffffff;\"><span style=\"color: #800000; font-weight: bold;\">p<\/span><span style=\"color: #808030;\">.<\/span>rtl <span style=\"color: #800080;\">{<\/span>\n  <span style=\"color: #bb7977; font-weight: bold;\">direction<\/span><span style=\"color: #808030;\">:<\/span> <span style=\"color: #074726;\">rtl<\/span><span style=\"color: #800080;\">;<\/span>\n<span style=\"color: #800080;\">}<\/span>\n<\/pre>\n<p>With this new feature, the RTL versions of the Bootstrap CSS files can be used for creating RTL websites.<\/p>\n<h3>Enhanced Grid System<\/h3>\n<p>Bootstrap 5 retains the grid system, but enhances it by introducing an extra grid tier called xx1 to minimize the efforts needed to create responsive pages on higher resolution displays. The columns in version 5 lack the default relative position, and vertical spacing is addressed by adding classes. This means that it&#8217;ll require lesser effort to move <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/getbootstrap.com\/docs\/4.0\/layout\/grid\/\">grid structure<\/a> between the old and the new version.<\/p>\n<p>Some popular changes in the grid system of Bootstrap 5 are:<\/p>\n<ul>\n<li>Introduction of xx1 grid tier.<\/li>\n<li>.g* utilities in grid adds gutter classes.<\/li>\n<li>Introduction of vertical spacing classes.<\/li>\n<li>The new grid system replaces the form layout options.<\/li>\n<li>Columns are relatibe by default and no longer positions.&nbsp;<\/li>\n<\/ul>\n<h3>Site Generation&nbsp;<\/h3>\n<p>Bootstrap 5 now uses <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gohugo.io\/\">Hugo<\/a> for generating static sites instead of <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jekyllrb.com\/\">Jekyll<\/a> (which it used previously). Hugo is faster and more popular as a site generator and can be implemented on Go.<\/p>\n<p class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/hugo.jpg\" alt=\"hugo fast website framework\" width=\"300\" height=\"88\"><\/p>\n<h3>Placeholder Components<\/h3>\n<p>With Bootstrap 5, it&#8217;s possible to load placeholders on the pages. This allows you to use the space meant for the components by putting placeholders in their stead while the actual content is still loading.<\/p>\n<p class=\"aligncenter\" style=\"font-weight: bold; font-size: 3em; line-height: 1em;\">\u2026<\/p>\n<h3>Enhanced Form Elements<\/h3>\n<p>Bootstrap 4\u2019s <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/html-css-js.com\/html\/generator\/form\/\">form elements<\/a> are known to default to the view provided by the browser. However, Bootstrap 5\u2019s form elements come with a custom design that ensures a consistent look and feel on all browsers. It also introduces <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/getbootstrap.com\/docs\/4.0\/components\/forms\/\">new form controls<\/a> based on standard and semantic form controls. This ensures that developers don\u2019t have to add extra markups for the form controls.<\/p>\n<h2>Author Bio<\/h2>\n<p>Charlie Svensson is a fast and engaging freelance content writer and a regular contributor at <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.superiorpapers.com\/programming-assignment-help.php\">superiorpapers<\/a>. He\u2019s skilled in content writing and blogging. The favorite topics of his posts are education, social media, marketing, SEO, motivation, blogging and self-growth. Excellent adaptability of skills to reach diverse audiences.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bootstrap is a popular open-source framework used to design responsive websites easier and faster with the mobile-first approach. It is available for CSS, JS, and HTML and it\u2019s believed to help the frontend design by server-side languages such as Node and PHP.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2,4,5,8],"tags":[],"class_list":["post-1806","post","type-post","status-publish","format-standard","hentry","category-articles","category-css","category-html","category-javascript","category-tools"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is the difference between Bootstrap 4 and bootstrap 5?<\/title>\n<meta name=\"description\" content=\"Bootstrap is a popular open-source framework used to design responsive websites easier and faster with the mobile-first approach.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the difference between Bootstrap 4 and bootstrap 5?\" \/>\n<meta property=\"og:description\" content=\"Bootstrap is a popular open-source framework used to design responsive websites easier and faster with the mobile-first approach.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Online\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/htmlcoding\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-14T10:19:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-04T18:05:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg\" \/>\n<meta name=\"author\" content=\"HTML Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HTML Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/\"},\"author\":{\"name\":\"HTML Editor\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\"},\"headline\":\"The Difference Between Bootstrap 4 and Bootstrap 5?\",\"datePublished\":\"2021-06-14T10:19:00+00:00\",\"dateModified\":\"2025-02-04T18:05:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/\"},\"wordCount\":928,\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg\",\"articleSection\":[\"Articles\",\"CSS\",\"HTML\",\"JavaScript\",\"Tools\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/\",\"url\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/\",\"name\":\"What is the difference between Bootstrap 4 and bootstrap 5?\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg\",\"datePublished\":\"2021-06-14T10:19:00+00:00\",\"dateModified\":\"2025-02-04T18:05:17+00:00\",\"description\":\"Bootstrap is a popular open-source framework used to design responsive websites easier and faster with the mobile-first approach.\",\"breadcrumb\":{\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#primaryimage\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/html-online.com\/articles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Difference Between Bootstrap 4 and Bootstrap 5?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/html-online.com\/articles\/#website\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"name\":\"HTML Online Articles\",\"description\":\"Tips, tricks, tutorials\u2026\",\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/html-online.com\/articles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/html-online.com\/articles\/#organization\",\"name\":\"HTML Online\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"width\":350,\"height\":350,\"caption\":\"HTML Online\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/htmlcoding\/\",\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\",\"name\":\"HTML Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"caption\":\"HTML Editor\"},\"description\":\"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/@htmlg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the difference between Bootstrap 4 and bootstrap 5?","description":"Bootstrap is a popular open-source framework used to design responsive websites easier and faster with the mobile-first approach.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/","og_locale":"en_GB","og_type":"article","og_title":"What is the difference between Bootstrap 4 and bootstrap 5?","og_description":"Bootstrap is a popular open-source framework used to design responsive websites easier and faster with the mobile-first approach.","og_url":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/","og_site_name":"HTML Online","article_publisher":"https:\/\/www.facebook.com\/htmlcoding\/","article_published_time":"2021-06-14T10:19:00+00:00","article_modified_time":"2025-02-04T18:05:17+00:00","og_image":[{"url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg","type":"","width":"","height":""}],"author":"HTML Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HTML Editor","Estimated reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#article","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/"},"author":{"name":"HTML Editor","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d"},"headline":"The Difference Between Bootstrap 4 and Bootstrap 5?","datePublished":"2021-06-14T10:19:00+00:00","dateModified":"2025-02-04T18:05:17+00:00","mainEntityOfPage":{"@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/"},"wordCount":928,"publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"image":{"@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg","articleSection":["Articles","CSS","HTML","JavaScript","Tools"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/","url":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/","name":"What is the difference between Bootstrap 4 and bootstrap 5?","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#primaryimage"},"image":{"@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg","datePublished":"2021-06-14T10:19:00+00:00","dateModified":"2025-02-04T18:05:17+00:00","description":"Bootstrap is a popular open-source framework used to design responsive websites easier and faster with the mobile-first approach.","breadcrumb":{"@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#primaryimage","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2021\/01\/laptop-on-desk.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/html-online.com\/articles\/difference-between-bootstrap-4-and-5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/html-online.com\/articles\/"},{"@type":"ListItem","position":2,"name":"The Difference Between Bootstrap 4 and Bootstrap 5?"}]},{"@type":"WebSite","@id":"https:\/\/html-online.com\/articles\/#website","url":"https:\/\/html-online.com\/articles\/","name":"HTML Online Articles","description":"Tips, tricks, tutorials\u2026","publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/html-online.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/html-online.com\/articles\/#organization","name":"HTML Online","url":"https:\/\/html-online.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","width":350,"height":350,"caption":"HTML Online"},"image":{"@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/htmlcoding\/","https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww"]},{"@type":"Person","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d","name":"HTML Editor","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","caption":"HTML Editor"},"description":"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.","sameAs":["https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/@htmlg"]}]}},"_links":{"self":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/1806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/comments?post=1806"}],"version-history":[{"count":3,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/1806\/revisions"}],"predecessor-version":[{"id":2212,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/1806\/revisions\/2212"}],"wp:attachment":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/media?parent=1806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/categories?post=1806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/tags?post=1806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}