{"id":20915,"date":"2020-08-07T00:47:06","date_gmt":"2020-08-07T07:47:06","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=20915"},"modified":"2020-12-29T10:58:40","modified_gmt":"2020-12-29T18:58:40","slug":"bootstrap-button","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/","title":{"rendered":"Bootstrap Buttons"},"content":{"rendered":"\n<p>The button element is one of the more useful Hypertext Markup Language (HTML) elements in the sense that it enables the user to interact with a page.&nbsp;<\/p>\n\n\n\n<p>Logging in, subscribing, deleting or opening something, showing a menu, changing the color theme are actions performed with buttons.<br><\/p>\n\n\n\n<p>The default browser button styles are not the best looking, and not modern by any means.<\/p>\n\n\n\n<p>By customizing their styling on every project, we repeat the same code many times for the same results.<br><\/p>\n\n\n\n<p>Again, Bootstrap coers us. Take a look at what\u2019s possible with Bootstrap buttons.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Colored Buttons<\/h2>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>    &lt;button class=&quot;btn btn-primary&quot;&gt;button 1&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-secondary&quot;&gt;button 2&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-info&quot;&gt;button 3&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-warning&quot;&gt;button 4&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-danger&quot;&gt;button 5&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-success&quot;&gt;button 6&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-light&quot;&gt;button 7&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-dark&quot;&gt;button 8&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-link&quot;&gt;button 9&lt;\/button&gt;<\/pre><\/div>\n\n\n\n<p>Regarding colors, we can use every Bootstrap\u2019s predefined ones, plus the BTN-LINK option, to apply Bootstrap\u2019s styling for links.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/T4Wj2IQE8iMhoRVYdfQlBJvBVaxUGv5hbArh6Kz7Pnsznx9sPofH_Pq5FydW9TNRPVRsHIBbce0YalhjeXqLVp2UH4K2SlVvvfErswtNmR_prOVvCCroqxI-l0fHPjdzC71k2ffY\" alt=\"\"\/><\/figure>\n\n\n\n<p>All of the colored options get nice uniform padding, and a quick color transition to a slightly darker shade when hovered over with the cursor. The link has an underline on hover.<br><\/p>\n\n\n\n<p>If we only declare the BTN class, Bootstrap will only remove the default browser styling:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;button&gt;Without Bootstrap&lt;\/button&gt;\n&lt;button class=&quot;btn&quot;&gt;With Bootstrap&lt;\/button&gt;<\/pre><\/div>\n\n\n\n<p>As we can see here:<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/PqCdHUzY9mGVT95_enLvSJY8YWNWi20Ey-HmTTH-luM1ojokLRDJZK3DihPfgTTS1A-rNUKOxDW0E7jhpdwrKlZgf5byfFaBxLqHmqbEcvCpPCo_-61SblUvzODyhiJglVTNaNDj\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Outline Buttons<\/h2>\n\n\n\n<p>We can use the same colors to create buttons with just an outline:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre> \t&lt;button class=&quot;btn btn-outline-primary&quot;&gt;button 1&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-outline-secondary&quot;&gt;button 2&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-outline-info&quot;&gt;button 3&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-outline-warning&quot;&gt;button 4&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-outline-danger&quot;&gt;button 5&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-outline-success&quot;&gt;button 6&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-outline-light&quot;&gt;button 7&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-outline-dark&quot;&gt;button 8&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-outline-link&quot;&gt;button 9&lt;\/button&gt;<\/pre><\/div>\n\n\n\n<p>They get the same background color as the outline, and the text becomes white or black, depending on the contrast. The light and yellow (WARNING) are get the black text. However, The link version does not support this option.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/z6tk9mgh-eoXcHjF5SmHphhmu4bPckEY60WHFP1nBgX7GcUfQBQXk4w65M61BbOZbod4cxYx6z6oGeL-qAPyti5SlcGX_rb9xXTzGZpo4Wn_f46MAnrz8NI_S3d6IoaTUgiYxBpG\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Sizing<\/h2>\n\n\n\n<p>Bootstrap supports three sizes for buttons: small, regular, and large.<br>We add another class to select the size like so:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;div class=&quot;m-5&quot;&gt;\n      &lt;button class=&quot;btn btn-primary btn-sm&quot;&gt;small button 1&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-warning btn-sm&quot;&gt;small button 2&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-primary btn-sm&quot;&gt;small button 3&lt;\/button&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;m-5&quot;&gt;\n      &lt;button class=&quot;btn btn-primary&quot;&gt;regular button 1&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-warning&quot;&gt;regular button 2&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-danger&quot;&gt;regular button 3&lt;\/button&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;m-5&quot;&gt;\n      &lt;button class=&quot;btn btn-primary btn-lg&quot;&gt;large button 1&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-warning btn-lg&quot;&gt;large button 2&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-danger btn-lg&quot;&gt;large button 3&lt;\/button&gt;\n    &lt;\/div&gt;<\/pre><\/div>\n\n\n\n<p>Three buttons of each size are made, and wrapped each size in a div with class M-5 just to give them a bit of margin, to space them out.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/S1JORIj29srtgqDRHd1YfUUzvMIwHcAu94Q1p6pV4W9Kpj-ddOM_dnKDPfOr3YPEQ35c7hkm0rB1BsOVU0EavEhaGIz0SgVXfnmCV8Dzapd-HEM06oHcZkDcykggT6MteCpL-rSI\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Block Level Buttons<\/h2>\n\n\n\n<p>If we want a button that\u2019s the full width of its containing element, we add a class of BTN-BLOCK to it. Let\u2019s create a simple form, a common case for this method.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;div class=&quot;form-group&quot;&gt;\n          &lt;label for=&quot;username&quot;&gt;username&lt;\/label&gt;\n          &lt;input type=&quot;text&quot; class=&quot;form-control&quot; \/&gt;\n          &lt;div class=&quot;form-group&quot;&gt;&lt;\/div&gt;\n          &lt;label for=&quot;email&quot;&gt;Email&lt;\/label&gt;\n          &lt;input type=&quot;email&quot; class=&quot;form-control&quot; \/&gt;\n        &lt;\/div&gt;\n        &lt;button class=&quot;btn btn-lg btn-block btn-primary&quot;&gt;\n          Block Level Button\n        &lt;\/button&gt;\n        &lt;button class=&quot;btn btn-lg btn-secondary my-2&quot;&gt;Regular button&lt;\/button&gt;\n      &lt;\/form&gt;<\/pre><\/div>\n\n\n\n<p>We won\u2019t go into detail about Bootstrap form classes.&nbsp;<br><\/p>\n\n\n\n<p>We just made a simple form that accepts a username and email, and has one block level button and one regular button.&nbsp;<br><\/p>\n\n\n\n<p>MT-2 is again just margin (top) added to separate the two buttons.<br><\/p>\n\n\n\n<p>And here we can see the difference:<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/XraCK0NSzrayTIjbpuSeDV_hRu_E0p2U1ELWjdKDBnOVcCsvbLOR1Wc0nga1m_kY84HcovIGSWzgBLUKmIGwNH8dwzaiGqUgS_1sNKoB6a73R0YdB1XoMDg7C2DQg-rFe8MiR1I1\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Button State<\/h2>\n\n\n\n<p>Like with many other Bootstrap components, we can change the appearance of a button with a state class, that is ACTIVE or DISABLED.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Active State<\/h3>\n\n\n\n<p>An active button has a slightly darker background, border, and shadow.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>      &lt;button class=&quot;btn btn-primary&quot;&gt;Regular&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-primary active&quot;&gt;Active&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-primary&quot;&gt;Regular&lt;\/button&gt;<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/_jrib7WColKci20iQzD01wudcxZi4Wr8EuK4DnayTuaPZSBAXcDLaHtU4SfEfW3iObtjmCT0WZhlFgWIQm7nmyzX0gjvZWh0Ak2N-23azIH31hMFA9booBbtAQXC1ctM0pLQUNTm\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Disabled State<\/h3>\n\n\n\n<p>In contrast, disabled buttons use lighter shades for the same properties. Know that adding the DISABLED class will only give the button the lighter colors. To make it truly disabled, we must declare it as the buttons attribute:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\t&lt;button class=&quot;btn btn-primary disabled&quot;&gt;Disabled Looking&lt;\/button&gt;\n    &lt;button class=&quot;btn btn-primary&quot; disabled&gt;Truly Disabled&lt;\/button&gt;<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/W5GsZC07-IoczHkle9cNnUxtObr7-tilDisXiYwPqBxAIANmTUodqlZ8s21qjIwKvTNIN5mIII2_rXFb3FTJqUphR1xl_fMltf04PCxBNHKwFfrrhXwFexF24Ol2HemFsiAYtC_C\" alt=\"\"\/><\/figure>\n\n\n\n<p>The one with the class DISABLED is still clickable, and will perform an action if it has one.<\/p>\n\n\n\n<p>For assistive technologies, we need to also include a ARIA-DISABLED=\u201cTRUE\u201d attribute, so screen reader users know there\u2019s a disabled button on the screen.<br><\/p>\n\n\n\n<p>Also, currently &lt;a&gt; elements don\u2019t support the DISABLED attribute, so to get the disabled look we must include the class.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;a class=&quot;btn btn-danger&quot; disabled&gt;Attribute Not Supported&lt;\/a&gt;\n      &lt;a href=&quot;#&quot; class=&quot;btn btn-danger disabled&quot;&gt;Disabled Look&lt;\/a&gt;<\/pre><\/div>\n\n\n\n<p>In the case of &lt;a&gt; tags, the class DISABLED adds the CSS rule POINTER-EVENTS: NONE, which disables mouse clicks.<br><\/p>\n\n\n\n<p>However, this is not yet fully supported on all web browsers, and even on supported ones, the link can still be accessed via keyboard.&nbsp;<br><\/p>\n\n\n\n<p>To make sure that the function is completely disabled, we should add the TABINDEX=\u201c-1\u201d attribute, so they can\u2019t be focused even with a keyboard.<br><\/p>\n\n\n\n<p>You should not use &lt;a&gt; tags as buttons anyway, but it\u2019s good to know.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/SnzS1ZxMc0fo3jz2AWjgP2uf8ZOb3YnJ7oZiq7SF_-WV23H7fytxAr2tbJnBNmfM5ujReN_Xln1Q2NnAoCoqQr9eu-8bpRrcODnQASm8oVGhvit5J4RQrrpWjYFHfygSpGtcCv9T\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Button Groups<\/h2>\n\n\n\n<p>Just like with CARDS &lt; ( in publishing at time of writing ) in Bootstrap, we can use a GROUP class to fuse the buttons together into a single element visually.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;div class=&quot;btn-group&quot;&gt;\n      &lt;button class=&quot;btn btn-primary&quot;&gt;button 1&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-warning&quot;&gt;button 2&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-info&quot;&gt;button 3&lt;\/button&gt;\n      &lt;button class=&quot;btn btn-danger&quot;&gt;button 4&lt;\/button&gt;\n    &lt;\/div&gt;<\/pre><\/div>\n\n\n\n<p>We simply wrap them in a div with the BTN-GROUP class and that\u2019s it!<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/xW4476A38y_RB_7K1Tay-6Va-EwBkJcxP1a2Xl1GDzEl3QkY6vwr2wmZ9K1oOXv42bYj4hwd5Mv8Mak7JYVlzoqixO9cndTUHFRalWClC0gUqi1aCaB1NdYPhslcHYsSVPz8zmY6\" alt=\"\"\/><\/figure>\n\n\n\n<p>The behavior is exactly the same, but now they\u2019re right next to each other, and the outer corners are nicely rounded.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">To Sum It Up<\/h2>\n\n\n\n<p>Buttons can be found on nearly every website, and they\u2019re a very important part of the online experience. We can log into our accounts, order something online, subscribe to a newsletter, or block all that spam landing in our inbox with buttons. Without them, websites would be digital business cards. Through Bootstrap, we can also make buttons a beautiful component of our sites.<\/p>\n","protected":false},"excerpt":{"rendered":"The button element is one of the more useful Hypertext Markup Language (HTML) elements in the sense that it enables the user to interact with a page.&nbsp; Logging in, subscribing, deleting or opening something, showing a menu, changing the color theme are actions performed with buttons. The default browser button styles are not the best&hellip;","protected":false},"author":85,"featured_media":20916,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17287],"tags":[],"class_list":{"0":"post-20915","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-css"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"CSS","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Bootstrap Buttons | Career Karma<\/title>\n<meta name=\"description\" content=\"A Bootstrap button is one of Bootstrap\u2019s styled components, enabling us to have a nice looking button with close to zero effort. Learn all about it with Career Karma.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bootstrap Buttons\" \/>\n<meta property=\"og:description\" content=\"A Bootstrap button is one of Bootstrap\u2019s styled components, enabling us to have a nice looking button with close to zero effort. Learn all about it with Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-07T07:47:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-29T18:58:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Stefan Dili\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stefan Dili\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/\"},\"author\":{\"name\":\"Stefan Dili\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/38a169875c6272296a3430eecc389f8b\"},\"headline\":\"Bootstrap Buttons\",\"datePublished\":\"2020-08-07T07:47:06+00:00\",\"dateModified\":\"2020-12-29T18:58:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/\"},\"wordCount\":736,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/\",\"name\":\"Bootstrap Buttons | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg\",\"datePublished\":\"2020-08-07T07:47:06+00:00\",\"dateModified\":\"2020-12-29T18:58:40+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/38a169875c6272296a3430eecc389f8b\"},\"description\":\"A Bootstrap button is one of Bootstrap\u2019s styled components, enabling us to have a nice looking button with close to zero effort. Learn all about it with Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\/\/careerkarma.com\/blog\/css\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bootstrap Buttons\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/38a169875c6272296a3430eecc389f8b\",\"name\":\"Stefan Dili\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/profilna-1-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/profilna-1-150x150.jpg\",\"caption\":\"Stefan Dili\"},\"url\":\"https:\/\/careerkarma.com\/blog\/author\/stefan-dili\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Bootstrap Buttons | Career Karma","description":"A Bootstrap button is one of Bootstrap\u2019s styled components, enabling us to have a nice looking button with close to zero effort. Learn all about it with Career Karma.","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:\/\/careerkarma.com\/blog\/bootstrap-button\/","og_locale":"en_US","og_type":"article","og_title":"Bootstrap Buttons","og_description":"A Bootstrap button is one of Bootstrap\u2019s styled components, enabling us to have a nice looking button with close to zero effort. Learn all about it with Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-07T07:47:06+00:00","article_modified_time":"2020-12-29T18:58:40+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg","type":"image\/jpeg"}],"author":"Stefan Dili","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"Stefan Dili","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/"},"author":{"name":"Stefan Dili","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/38a169875c6272296a3430eecc389f8b"},"headline":"Bootstrap Buttons","datePublished":"2020-08-07T07:47:06+00:00","dateModified":"2020-12-29T18:58:40+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/"},"wordCount":736,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/bootstrap-button\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/","url":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/","name":"Bootstrap Buttons | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg","datePublished":"2020-08-07T07:47:06+00:00","dateModified":"2020-12-29T18:58:40+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/38a169875c6272296a3430eecc389f8b"},"description":"A Bootstrap button is one of Bootstrap\u2019s styled components, enabling us to have a nice looking button with close to zero effort. Learn all about it with Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/bootstrap-button\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/wes-hicks-VZNYO4suM5o-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/bootstrap-button\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/careerkarma.com\/blog\/css\/"},{"@type":"ListItem","position":3,"name":"Bootstrap Buttons"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/38a169875c6272296a3430eecc389f8b","name":"Stefan Dili","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/profilna-1-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/profilna-1-150x150.jpg","caption":"Stefan Dili"},"url":"https:\/\/careerkarma.com\/blog\/author\/stefan-dili\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/85"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=20915"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20915\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/20916"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=20915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=20915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=20915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}