{"id":21352,"date":"2020-08-17T23:27:51","date_gmt":"2020-08-18T06:27:51","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21352"},"modified":"2021-01-04T02:56:33","modified_gmt":"2021-01-04T10:56:33","slug":"bootstrap-tabs","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/","title":{"rendered":"Use the Bootstrap Framework to Create Tabs"},"content":{"rendered":"\n<p>Tabs are a user interface (UI) element that allow us to see different panes of information without using up extra space. Just like tabs in a binder or book, they mark a placement on the page for more information and are identified by what the pane of information contains. When you click on a tab, you are presented with the information associated with that tab.&nbsp;<br><\/p>\n\n\n\n<p>Bootstrap is a framework to help us quickly create tabs. In this article, we review how to get Bootstrap set up, learn why we might need to use tabs, and take a look at some examples of Bootstrap tabs in action.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Getting Started<\/h2>\n\n\n\n<p>The first thing we need to do to make sure we can view tabs on our web page is to ensure we have the proper dependencies. For this project, we need Bootstrap, Popper.JS and jQuery. Navigate to <a href=\"https:\/\/getbootstrap.com\/docs\/4.3\/getting-started\/introduction\/\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\">Bootstrap\u2019s Quick Start<\/a> page for assistance with getting all your dependencies.&nbsp;<br><\/p>\n\n\n\n<p>It\u2019s up to you how to link the packages we need, but the easiest, most beginner-friendly way is to use the content delivery network \u2014 the CDN \u2014 for jQuery, Popper.js, and Bootstrap. Be careful of the order of your &lt;script&gt; tags \u2014 order matters here.&nbsp;<br><\/p>\n\n\n\n<p>You\u2019re ready to get started!&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using Bootstrap Documentation To Create Tabs<\/h2>\n\n\n\n<p>On the left hand side of the \u201cIntroduction\/Getting Started\u201d page, you see a sidebar that links to various things. Take a look for the \u201cComponents\u201d<em> <\/em>link and click on it. This will navigate you to the first of Bootstrap\u2019s many available components: \u201cAlerts\u201d. If we take a look at the sidebar again, it\u2019s been updated to show the different links to all the different components we have available to us.&nbsp;<br><\/p>\n\n\n\n<p>Click on the \u201cNavs\u201d components. This will have the tabs information that we need to get started.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Start with the Base Nav<\/h3>\n\n\n\n<p>To use Bootstrap\u2019s given code in their documentation, start with the base nav at the top of the page. This demonstrates that the nav class doesn\u2019t specifically handle any special styling.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;ul class=&quot;nav&quot;&gt;\n  &lt;li class=&quot;nav-item&quot;&gt;\n    &lt;a class=&quot;nav-link active&quot; href=&quot;#&quot;&gt;Active&lt;\/a&gt;\n  &lt;\/li&gt;\n  &lt;li class=&quot;nav-item&quot;&gt;\n    &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;Link&lt;\/a&gt;\n  &lt;\/li&gt;\n  &lt;li class=&quot;nav-item&quot;&gt;\n    &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;Link&lt;\/a&gt;\n  &lt;\/li&gt;\n  &lt;li class=&quot;nav-item&quot;&gt;\n    &lt;a class=&quot;nav-link disabled&quot; href=&quot;#&quot;&gt;Disabled&lt;\/a&gt;\n  &lt;\/li&gt;\n&lt;\/ul&gt;<\/pre><\/div>\n\n\n\n<p>To create the tabs, add the nav-tabs class to the first line of code in the class attribute.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;ul class=&quot;nav nav-tabs&quot;&gt;\n  &lt;li class=&quot;nav-item&quot;&gt;\n    &lt;a class=&quot;nav-link active&quot; href=&quot;#&quot;&gt;Active&lt;\/a&gt;\n  &lt;\/li&gt;\n  &lt;li class=&quot;nav-item&quot;&gt;\n    &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;Link&lt;\/a&gt;\n  &lt;\/li&gt;\n  &lt;li class=&quot;nav-item&quot;&gt;\n    &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;Link&lt;\/a&gt;\n  &lt;\/li&gt;\n  &lt;li class=&quot;nav-item&quot;&gt;\n    &lt;a class=&quot;nav-link disabled&quot; href=&quot;#&quot;&gt;Disabled&lt;\/a&gt;\n  &lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;div&gt; ***** tab content will go here as &lt;div&gt;s ***** &lt;\/div&gt;<\/pre><\/div>\n\n\n\n<p>From a UI standpoint, we now have tabs. But we don\u2019t yet have the functionality. Let\u2019s take a look at how to do that next.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add Roles to the Markdown<\/h3>\n\n\n\n<p>To keep up with the ARIA standard (accessibility rules), add a role attribute to each of the tags:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>For &lt;ul&gt;, add role=\u201dtablist\u201d<\/li><li>For &lt;a&gt;, add role=\u201dtab\u201d<\/li><li>For &lt;div&gt; that wraps around the contents of each tab, add role=\u201dtabpanel\u201d<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Add Attributes to Point to Tab-Content<\/h3>\n\n\n\n<p>At this point, we know at a high level, we have a block of code dedicated to the links, and we have another block of code dedicated to the content. We need to do a couple of things to get the tab connected with its content. Let\u2019s start with the &lt;ul&gt; block of code.&nbsp;<br><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>First, add ids to all of your &lt;a&gt; elements. Use \u201ctab-name + -tab\u201d (for example, a tab whose name is home \u2013 their id would be \u201chome-tab\u201d).&nbsp;<ol><li>For the &lt;div&gt; block of code that houses the tab-contents (those to be used as tabpanels), use the name of the tab they are associated with as the id (i.e. content associated with the home tab should have an id of \u201chome\u201d).&nbsp;<\/li><\/ol><\/li><li>Next, add an href to the tab that links to the id of the tab-content it is associated with. To keep using our \u201chome\u201d tab analogy, the &lt;a&gt; tag should have an href of \u201c#home\u201d.&nbsp;<\/li><li>Add a data-toggle attribute that indicates what is to be toggled. In this instance it is \u201ctab\u201d.&nbsp;<\/li><li>Finally, add any aria attributes that will help those with assistive technologies.&nbsp;<\/li><\/ol>\n\n\n\n<p>Our &lt;ul&gt; element with our links should look like this so far:&nbsp;<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;ul class=&quot;nav nav-tabs&quot; role=&quot;tablist&quot;&gt;\n     &lt;li class=&quot;nav-item&quot;&gt;\n       &lt;a id=&quot;a-tab&quot; class=&quot;nav-link active&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;  href=&quot;#a&quot;&gt;A&lt;\/a&gt;\n     &lt;\/li&gt;\n     &lt;li class=&quot;nav-item&quot;&gt;\n       &lt;a id=&quot;b-tab&quot; class=&quot;nav-link&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot;  href=&quot;#b&quot;&gt;B&lt;\/a&gt;\n     &lt;\/li&gt;\n     &lt;li class=&quot;nav-item&quot;&gt;\n       &lt;a id=&quot;c-tab&quot; class=&quot;nav-link&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot; href=&quot;#c&quot;&gt;C&lt;\/a&gt;\n     &lt;\/li&gt;\n     &lt;li class=&quot;nav-item&quot;&gt;\n       &lt;a id=&quot;d-tab&quot; class=&quot;nav-link&quot; role=&quot;tab&quot; data-toggle=&quot;tab&quot; href=&quot;#d&quot;&gt;D&lt;\/a&gt;\n     &lt;\/li&gt;\n   &lt;\/ul&gt;<\/pre><\/div>\n\n\n\n<p>The tab-content element is next. This is a separate block of code from the &lt;ul&gt; block that contains all of our links.<br><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Make sure your tab contents divs are enclosed in an outer div that acts as a container for each of the smaller divs. Also, ensure each of the smaller divs is named for the appropriate tab heading from the previous block.&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\"><li>Ensure that the proper ARIA attributes are added. Here, we use aria-selected and aria-labelledby. Aria-labelledby matches the id of the matching tab heading. Aria-controls match the id of that particular div element.&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\"><li>Finally, add a class attribute that at least contains the \u201cshow\u201d class name. This is a bootstrap class that assists with showing the proper pane when you click on a particular tab. The \u201cactive\u201d part of the class name indicates which pane is showing. \u201cFade\u201d indicates that an animation is being used to fade the pane in and out when a tab has been clicked.<\/li><\/ol>\n\n\n\n<p>The code for one of the tab-contents divs is as follows:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;div class=&quot;tab-content&quot; style=&quot;padding: 20px;&quot;&gt;\n     &lt;div id=&quot;a&quot; aria-labelledby=&quot;a-tab&quot; class=&quot;tab-pane fade show active&quot; role=&quot;tabpanel&quot; aria-controls=&quot;a&quot; aria-selected=&quot;true&quot;&gt;A&lt;\/div&gt;\n&lt;\/div&gt;<\/pre><\/div>\n\n\n\n<p>Use this as a guide to create the rest of the tab-content divs. Refer to the code below to help you if you get stuck.<br><\/p>\n\n\n\n<p>Here is the entire codebase in full:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n &lt;head&gt;\n   &lt;meta charset=&quot;utf-8&quot;&gt;\n   &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot;&gt;\n   &lt;title&gt;repl.it&lt;\/title&gt;\n   &lt;!-- Bootstrap stylesheet --&gt;\n   &lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.2\/css\/bootstrap.min.css&quot; integrity=&quot;sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z&quot; crossorigin=&quot;anonymous&quot;&gt;\n &lt;\/head&gt;\n &lt;body&gt;\n   &lt;!-- tab headings --&gt;\n   &lt;ul class=&quot;nav nav-tabs&quot; role=&quot;tablist&quot;&gt;\n     &lt;li class=&quot;nav-item&quot;&gt;\n       &lt;a id=&quot;a-tab&quot; class=&quot;nav-link active&quot; data-toggle=&quot;tab&quot; role=&quot;tab&quot; href=&quot;#a&quot;&gt;A&lt;\/a&gt;\n     &lt;\/li&gt;\n     &lt;li class=&quot;nav-item&quot;&gt;\n       &lt;a id=&quot;b-tab&quot; class=&quot;nav-link&quot; data-toggle=&quot;tab&quot; role=&quot;tab&quot; href=&quot;#b&quot;&gt;B&lt;\/a&gt;\n     &lt;\/li&gt;\n     &lt;li class=&quot;nav-item&quot;&gt;\n       &lt;a id=&quot;c-tab&quot; class=&quot;nav-link&quot; data-toggle=&quot;tab&quot; role=&quot;tab&quot; href=&quot;#c&quot;&gt;C&lt;\/a&gt;\n     &lt;\/li&gt;\n     &lt;li class=&quot;nav-item&quot;&gt;\n       &lt;a id=&quot;d-tab&quot; class=&quot;nav-link&quot; data-toggle=&quot;tab&quot; role=&quot;tab&quot; href=&quot;#d&quot;&gt;D&lt;\/a&gt;\n     &lt;\/li&gt;\n   &lt;\/ul&gt;\n   &lt;!-- tab contents --&gt;\n   &lt;div class=&quot;tab-content&quot; style=&quot;padding: 20px;&quot;&gt;\n     &lt;div id=&quot;a&quot; aria-labelledby=&quot;a-tab&quot; class=&quot;tab-pane fade show active&quot; role=&quot;tabpanel&quot; aria-controls=&quot;a&quot; aria-selected=&quot;true&quot;&gt;A&lt;\/div&gt;\n     &lt;div id=&quot;b&quot; aria-labelledby=&quot;b-tab&quot; class=&quot;tab-pane fade&quot; role=&quot;tabpanel&quot; aria-controls=&quot;b&quot; aria-selected=&quot;false&quot;&gt;B&lt;\/div&gt;\n     &lt;div id=&quot;c&quot; aria-labelledby=&quot;c-tab&quot; class=&quot;tab-pane fade&quot; role=&quot;tabpanel&quot; aria-controls=&quot;c&quot; aria-selected=&quot;false&quot;&gt;C&lt;\/div&gt;\n     &lt;div id=&quot;d&quot; aria-labelledby=&quot;d-tab&quot; class=&quot;tab-pane fade&quot; role=&quot;tabpanel&quot; aria-controls=&quot;d&quot; aria-selected=&quot;false&quot;&gt;D&lt;\/div&gt;\n   &lt;\/div&gt;\n   &lt;!-- jquery cdn --&gt;\n   &lt;script src=&quot;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js&quot;&gt;&lt;\/script&gt;  \n   &lt;!-- popper js cdn --&gt;\n   &lt;script src=&quot;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/popper.js\/2.4.4\/umd\/popper.min.js&quot;&gt;&lt;\/script&gt;\n   &lt;!-- bootstrap cdn --&gt;\n   &lt;script src=&quot;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/twitter-bootstrap\/4.5.2\/js\/bootstrap.min.js&quot;&gt;&lt;\/script&gt;\n &lt;\/body&gt;\n&lt;\/html&gt;<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>You\u2019ve just created a tab navigational component using Bootstrap! Try your hand at creating pill navigational containers next. Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"Tabs are a user interface (UI) element that allow us to see different panes of information without using up extra space. Just like tabs in a binder or book, they mark a placement on the page for more information and are identified by what the pane of information contains. When you click on a tab,&hellip;","protected":false},"author":77,"featured_media":18894,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17287],"tags":[],"class_list":{"0":"post-21352","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":"HTML","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Use the Bootstrap Framework to Create Tabs | Career Karma<\/title>\n<meta name=\"description\" content=\"Bootstrap&#039;s Tabs component can update the look of your UI so that it is more minimalistic or professional. Learn how to incorporate this into your site on CareerKarma.\" \/>\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-tabs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use the Bootstrap Framework to Create Tabs\" \/>\n<meta property=\"og:description\" content=\"Bootstrap&#039;s Tabs component can update the look of your UI so that it is more minimalistic or professional. Learn how to incorporate this into your site on CareerKarma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/\" \/>\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-18T06:27:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-04T10:56:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/russ-ward-bqzLehtF8XE-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"665\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Christina Kopecky\" \/>\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=\"Christina Kopecky\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/\"},\"author\":{\"name\":\"Christina Kopecky\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\"},\"headline\":\"Use the Bootstrap Framework to Create Tabs\",\"datePublished\":\"2020-08-18T06:27:51+00:00\",\"dateModified\":\"2021-01-04T10:56:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/\"},\"wordCount\":907,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/russ-ward-bqzLehtF8XE-unsplash.jpg\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/\",\"name\":\"Use the Bootstrap Framework to Create Tabs | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/russ-ward-bqzLehtF8XE-unsplash.jpg\",\"datePublished\":\"2020-08-18T06:27:51+00:00\",\"dateModified\":\"2021-01-04T10:56:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\"},\"description\":\"Bootstrap's Tabs component can update the look of your UI so that it is more minimalistic or professional. Learn how to incorporate this into your site on CareerKarma.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/russ-ward-bqzLehtF8XE-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/russ-ward-bqzLehtF8XE-unsplash.jpg\",\"width\":1000,\"height\":665,\"caption\":\"White book with yellow, red, and blue tabs\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/bootstrap-tabs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Use the Bootstrap Framework to Create Tabs\"}]},{\"@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\\\/ae0cdc4a5d198690d78482646894074e\",\"name\":\"Christina Kopecky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"caption\":\"Christina Kopecky\"},\"description\":\"Christina is an experienced technical writer, covering topics as diverse as Java, SQL, Python, and web development. She earned her Master of Music in flute performance from the University of Kansas and a bachelor's degree in music with minors in French and mass communication from Southeast Missouri State. Prior to joining the Career Karma team in June 2020, Christina was a teaching assistant, team lead, and section lead at Lambda School, where she led student groups, performed code and project reviews, and debugged problems for students. Christina's technical content is featured frequently in publications like Codecademy, Repl.it, and Educative.\",\"sameAs\":[\"http:\\\/\\\/www.linkedin.com\\\/in\\\/cmvnk\"],\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/christina-kopecky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Use the Bootstrap Framework to Create Tabs | Career Karma","description":"Bootstrap's Tabs component can update the look of your UI so that it is more minimalistic or professional. Learn how to incorporate this into your site on CareerKarma.","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-tabs\/","og_locale":"en_US","og_type":"article","og_title":"Use the Bootstrap Framework to Create Tabs","og_description":"Bootstrap's Tabs component can update the look of your UI so that it is more minimalistic or professional. Learn how to incorporate this into your site on CareerKarma.","og_url":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-18T06:27:51+00:00","article_modified_time":"2021-01-04T10:56:33+00:00","og_image":[{"width":1000,"height":665,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/russ-ward-bqzLehtF8XE-unsplash.jpg","type":"image\/jpeg"}],"author":"Christina Kopecky","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"Christina Kopecky","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/"},"author":{"name":"Christina Kopecky","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e"},"headline":"Use the Bootstrap Framework to Create Tabs","datePublished":"2020-08-18T06:27:51+00:00","dateModified":"2021-01-04T10:56:33+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/"},"wordCount":907,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/russ-ward-bqzLehtF8XE-unsplash.jpg","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/","url":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/","name":"Use the Bootstrap Framework to Create Tabs | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/russ-ward-bqzLehtF8XE-unsplash.jpg","datePublished":"2020-08-18T06:27:51+00:00","dateModified":"2021-01-04T10:56:33+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e"},"description":"Bootstrap's Tabs component can update the look of your UI so that it is more minimalistic or professional. Learn how to incorporate this into your site on CareerKarma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/russ-ward-bqzLehtF8XE-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/russ-ward-bqzLehtF8XE-unsplash.jpg","width":1000,"height":665,"caption":"White book with yellow, red, and blue tabs"},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/bootstrap-tabs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"HTML","item":"https:\/\/careerkarma.com\/blog\/html\/"},{"@type":"ListItem","position":3,"name":"Use the Bootstrap Framework to Create Tabs"}]},{"@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\/ae0cdc4a5d198690d78482646894074e","name":"Christina Kopecky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","caption":"Christina Kopecky"},"description":"Christina is an experienced technical writer, covering topics as diverse as Java, SQL, Python, and web development. She earned her Master of Music in flute performance from the University of Kansas and a bachelor's degree in music with minors in French and mass communication from Southeast Missouri State. Prior to joining the Career Karma team in June 2020, Christina was a teaching assistant, team lead, and section lead at Lambda School, where she led student groups, performed code and project reviews, and debugged problems for students. Christina's technical content is featured frequently in publications like Codecademy, Repl.it, and Educative.","sameAs":["http:\/\/www.linkedin.com\/in\/cmvnk"],"url":"https:\/\/careerkarma.com\/blog\/author\/christina-kopecky\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21352","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\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=21352"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21352\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18894"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}