Tabs

Use tabs to organize your article content in a way that makes it easy for your visitors to find what they're looking for.

Standard tabs

Creating tabs within your article content doesn’t involve copying and pasting any HTML as the Tabs extension lets you transform standard ordered (<ol>) and unordered (<ul>) lists created in the article editor into interactive tabs. This makes it easy for visitors to find what they’re looking and allows content creators to focus on producing helpful content.

If you do ever need to migrate your content you can do so without having to worry about unnecessary markup or inline styles.

The default tabs template
View code
<ul class="js-tabs">
  <li title="Android">
    <p>Android is a mobile operating system based on a modified version of the Linux kernel and other open source software, designed primarily for touchscreen mobile devices such as smartphones and tablets. Android is developed by a consortium of developers known as the Open Handset Alliance and commercially sponsored by Google. It was unveiled in 2007, with the first commercial Android device launched in September 2008.</p>
  </li>
  <li title="iOS">
    <p>iOS is a mobile operating system created and developed by Apple Inc. exclusively for its hardware. It is the operating system that presently powers many of the company's mobile devices, including the iPhone, and iPod Touch; it also powered the iPad prior to the introduction of iPadOS in 2019. It is the second most popular mobile operating system globally after Android. It is the basis for other operating systems made by Apple Inc, like iPadOS, tvOS, and watchOS.</p>
  </li>
  <li title="Windows">
    <p>Windows 10 Mobile is a discontinued mobile operating system developed by Microsoft. First released in 2015, it is a successor to Windows Phone 8.1, but was marketed by Microsoft as being an edition of its PC operating system Windows 10. Windows 10 Mobile aimed to provide greater consistency with its counterpart for PCs, including more extensive synchronization of content, the ability to to connect devices to an external display and use a desktop interface with mouse and keyboard input support.</p>
  </li>
</ul>

The default template is simple, elegant and responsive and will automatically inherit the overall style of your theme. You can add any type of content you like to each tab, including HTML, images, videos and other article formatting styles.

Customized tabs

Customized tabs templates can introduce icons, transition effects and even entirely new layouts like vertical tab links.

Large, justified tabs with icons
View code
11b509035f82c9701c5fbbf3ed99602c006813038d6eb5809f058e4903c50fddd436937f3cb92ba28330136ec51585d26474862b53335076c84affe5642a25faecdf48075131cedae73e9084d671d1d1de08ea21dc1bfd76a21523d922019acc439dff9c9c6a7f7ee372662a0ad0112b4d8dcc385fe93b338496926b0146c070ad23b84fb280dbc6f810f361ff728bb782ed7fe984f3d1c47c1476808d87f20ac8f4cb84f56ea2a0ce9683f88e708ca35cdae53149f786ecd1d7ac1593b33794fd3163a7ecceb5688fc6a5088f86ff8ca45fdfdbc3739656cfc783d3eca040e81e7a8fdab65d8c20ebcdd57627a66f1cf5cd70a35b8c3203968c76d672faf735ed184536c7b7799b4995ef571169a201ea52983f4d3b135f32474566b08b170feb3aa05766963e907a8f4fc37a2c6b1cbb02b2344f585d7df55d0cdba61a13e0b5da0b14161f897c0db222fcbad09ee5cc26f681ea9a00a1c8052113c36c1dbdf562610e91a407cf5c005a9a29fe9c6a9fc992cd00702e0a3c005a9aaba0d4ade15102ba5ab4c90cf6ab911efa8409792a18f144dfe4f97957c7968e24096a44f4f3813d0a089f07baffd585b3ca8732bd5096eabf3c290422cfaed2249d92ffde00a6d024a8a0e3e5220eaf2406e819290ee426daebb6dfc8dbd8381f2643ffe8d0d1f56c875ff829d6d83fea823f3fc42b933d5aa32df7406de55d34d9984f9cb5711e00d595090a46099e54edcc46a102d5fd7a71187da2baf823547ea79d80673fe19946f59c4641e90eed4a0181ce40d0cac04ce828139bcde0c891d8952a8cb90aa24a5166bbb5a46acca3c6f2890bed4227fe2bc3c9ab5303a3828dd3192b894804fce087af9f85259272c2ad1410d3c876d8591dbfec34a321c6207f27d4d42714fc188fce844271c40aa0c32941a777408a0d1483a54c68b01217f64a15eacf143f018bdd82e4706c0e246951c01e7cc4bc6d6c1defdf86bed96d8292e6eeedd21168ce4589bf7bbdee30a93ea14ec365b671d55a04169c349780576dc80422695ed2b8398235d51eadd5e365b4d013721934fb9a4d0317e343b9ba7d7b2300db4ca114ff4674d2f61b02d1917419f65d0375b7ed8ee17fccee2d4cb8f4caac3390c98f50e4540f333f21c3bfe87520a91416ac511f4fc93111f754ca65c239acf0d7060a51903f401df2c9862dc4c8147a4d7f5b8026501b364f42c7b1e723ea1d2b6c4cd559244be5d96eefe14db79b2c9cf7f6681356d0e366d74fc4fba5ea8459b3f8785dcfb5946a800ac71214434c4d6252337ac204204f9cf66daa3ec7a36d4aef0fef71e4b5ac44f822dad33aa5da9d86a5670c2c090dfcd1ae9fa878508d3f3c31ba57171d7221f047f503ddab26a8098b1bb1e45ae6357d3790b97aea22c6540885a019f7d9aba47f92faff26a82b7e6df39eb5c8f1aa83b02bc16b4d761e0b1f688d71a4fa46d7becd6bf4aedcf50e1bd42eef7ad2186227e3417d2f1124c6cde6af7403df34ee895e5f2106907a658894a1820174d29ff52149c3350deeb29ee0c89a26ff2640a7eb4ed7ba19316c60c5be2c6927fe65b81e21d1b551ea46147ded0e42511a94d8e1ae362bfad99ebc50a232439472cf2092310521ee8c9a047d4a5154c75fd98ce363ef977798821f300daa6e0f222a2b2c8eac90a89baa94ab39ae4a0a37e8c15167b6bcd8cfd74c7d35e62a7c95da2603179655f18d9588f1770d64086d880ddde3708b1a93e524f650f5960b7ebb36ae7453be6a48b9fd47a0c885610df1d1fcfbc9340ed754e9810f74f7e6e7490b3e73243fb57cc0eb5818e0afbc87184dad226a5bcfe274e466e3c7cc6a594ec7ec99a75cad3b991babe7434dbe4d73b213400fa8cad82685b73705c880ac29052ac44424afbcf94e2e6f474f642d967bac37fc8910c82871f94671471f3826878ad7c994ce35b26b2baad77c933874fe14183b8a55d326467853f31959ff5b525e502413676dc08e8edf5c17ad8a48444d1da9d051b74c5c72bd4d62fbb777f1b8d15887916dc7aae85b136ab2adc5aee8728ebd2a91953d86d4651aafc8d988aad441ba94392176ad53201af57b770fb761beeaba96685581206616f3e245504605b3e6f79c1e462c6e18cab05e988d4c12d7f037d8b23ed6e252744b2a89c2d4726c7924a74d04c9c8af41cbcb34ec068b018be345b36ebd26ac93546c967266c3d115c479a08a7d8fddd163ea85e8de868ac15febd378c0f093357abff0d4cdcf286ed5d07ef7fe433ba5ae6e84669f0980449596408043242384ca2f006a73d7e606186f4ab9ecea5e386e8841a00f7f5cfd09de2d603397a0d8a26b04040ed3082849acdb3a4ca4c3697d781cc2a794c0d0d6091a39a84ee4abefe5e8cc15b0a21c51a692a9e1f54de941107b8ff5a4d9b2e1f58f324e2f220e8fa34edcc38631cf37315e516f502fb925e928704b72ec7f88a53a7cff7da00c83487aee799ed195a2617176d3adc8abd8a4327255e73ffb4c011aa79552081f39b20d2a776e6b291608a94c87f85594ac9173d7664627a520ed32f722356cd3c4047a09f9b15ed08c9ddcfacdd2e43c17a5301086d4249e5e7cbef68d67663c97b9f1a1a71e588e3d08c2ae29c96597f4f3947f1f492323dd9aa0c651d7c72afe115842c88063207faff79eb733ac715d2a248cf05c740f7927f58f2842244e2dce3ca63c0b43aa041a89bdad7d5b50054cdbe9203ddda08a620f02d977a1526971d129e0c0783160ee50a19d78a42d242a977985e1e89e0bb9bb20b840243b53862bd4e35f522522b054b58b4b9edfdef75383ab744a1126cdb5e20b1941055ac1c2d23627bf6b8c77c5db550fa01a1ed63f8c22b3996d44597a0c0f599eaa4a0c616148c05c8cafceb1b02c929a69254a45ad0dcef0173cd577d144d0a2f10222f5b19f68a1ce19a7691ed7955cac763aab54a63b37f5c7c7d58516108fc6b093fdd92ba5c77ff3cb8fb6dd064de288f76da49cf99eac41b46e3336a662073ddee5c8ce1376cb9d11b1f739a35ebca52dd3d3deaf3e0412aac5a0ad7661671318d9bc104ef2198f20584893ec57c27c2f27aee9c9a6e374f87d699703ddb0513b0920af890ff490794044e48c02702c8c609791e17fe889034e65dd9fba04974508c951ace4501db038f8431ba649ed31985d0604cb0268cb77a37bd30229442d8e8ed245425fbeb81a75fb10c76801076f48162713c444be6a1d32574e18b4cdd14b58078db11be4601b2d4c6f391070a68bf9f7af11eaedf57f5357747c574f4e0d635b55eb9677555b6dc98c239e9d72005260f5463d91757284c1616662095160887ffde863874603aec98524f95577c07cf928fa79f42150718b16fd5af20a24f465700c76bd94d17b5a4e5d858671462064e45fa6ef95b99e4c29b5a5efe4ac32e9e05770dbbd985bce193ceeeaf0c11431a8640eabc8e813c2eeaa719220c2c70a4bac886a9b89b0cbe7290c56782d05f678391db0628e32c85bfb6ee32d3dc093c7013611f6894ccf1baeb140d80132cb538f3590554f497c3d901c41fc678baba0c6a49ed422d58a5bf6c5a0d0ae58a32c590af436c5ac0522bb9db8550bcb486628467de1b5ddbff63e09957f5e26d685b16dfe3515f2047039507390b16ef2983d098625ee69b56e868b16f6370d9e35b3c56bb3572993a3f3a747595ac55ce8d15c4595d0ad617cf0f4bb75b391d1311e398d1d5810c8c04bec875d72918166c4e0227b1aec05cd26f071016525bde9c7b57e3e2f31fe0932b04906c50292d8e03b70efbf5117c6878ca2527b3d6f202af08568f4aaa1c2f62ceaf8df2b4ebbb0ee45fc9f5c4879cfb9fb1773c6213a52d417a5cebc5e7ff10d8293706db24c173321f938e96dbd2926985f13a6bef899ebf038193b08b339f6d4d52bbbec205acaf842a93ad8622eccf7516a789d4f58b88b20b691660609e1320ab0f4eac67685d0ad01a56c8604dea25b607a9add98f58bf71f20ca68d69701eb1c8ee62e2fcfc1f7a3400a24d551d6b3d6acb3f49a2ced7bd73d5444c2705eb2f3a8f15491198ce68333863ae88b8122f9c483ff0d5f0ef13562e9da442727ea095326013cbe8083555a60da284741b705fe2783100c1b8b19333928be124dee582cd2dfb50e423b93a17561d930be7c368b21ad19d66cfd94a71e6d97ed384d0a119d158d9f8f1b4262c2830f6bbb1461769778282afc8c85921ce7f6d49761c2d691bf53af3142f07b2c86846488b8adae6b371c3b218c7f8893f52287ee392d83bc2471277e0b270a48c9c2b142bbeb73e854a3f8e7198bedc89af8aece66fed8292a0ba1bd41b2531b1d9082091af0cdf5b2cb3f52150a2b5d3449af3d88b960f6a69f14bf5bda69dff93a4f0157aac798c9b8a2476838ae2677a0721fa3c119a79dee843779f4d4d396939cddd73ddfdb1c23132c3d852235244d638db6720aca021f821c19a352d593021cb739ac6626225f43cc2ab17ce31e9a104aa3568ad07a0ed078657a2ea41bf083ba35406c1099790ad7e44471d4cebc00449343aeef9961453d0d05034e2ed760a95d3e52d00e3c80a8751c58323f4057bc6348201827597ee1d9fe5ee7d4a54ee6a92c9b640ab1f96f604d5b648a5baf1ebde8d0c4b01a4b495072725d368c48e2b736a87c1febb66932166b38130882ee3b13aa52d931491386d1dc40c3b501670a367b780b3a05291a456f15e21f51db03eb16b62bb6d03145bf49e8733f3a7e35efdd5b45d969fd1a332ad72f7fdebeafd2f4c079e6663732c2151c117c4e4baadb44c0612800d42c137c7c9907c940891f1e2b1d4fe51fba8a23853f6efda37df0bd23a76e38e2f2531e1049649358d5d4c05b8e841e694ca23c7dddcc2a811cf6ccb18b1b89948f2a35f4d03b399a8555a7ae0409d0d93b862307068b1a09f3ec46edffbd08d4c2dd4ac12a15de4ed2f2634860e47bb45c9ef6b779553de0417f789b3d981fc4bbca35f7d396f2393776ee5dbe48410a7e12bfdb8374b0cade3b5e2e7e0113979c3cb58512d9524cc1f49c53a6e79ae89c1e15d42a69eb341e727cc83f58a47feab377e9e1f0357c7250a36a34d4cc6e6a52d465791399c9461261486327115531c3272019c3c861c67ed55572cfffc9df50f5ec6ee28c88403c45372cac1cd4be08dc2c442f46f2217d913258adb365cfc21c4138b202b706f36f7779412e25827afbab2882ace96e274f64a87aa83ee7873379ccf4aec590b822e7a219300cf48ed5b5d21068f5abf2d0929f88c9a14c2d6a239e154d4400a14bd6a923cab02d80b7da50a397a38efb13658846adfd281f1ddb549749f697ec3b508503c69878d8ad3f318ace09e33b78d2a4dc94d9e548599dcdd1e46f479320591377b00b74ec78245a4c2ab5dc5bdb43054c73cffdf92484fecd6518580e91b351ab256d4abcc92ba23626328bd94f0da547a97d7fd5576b34d2ff0dd4cd57c987c665aabff3142ceb8d899367efb1cc189e077c1412c59dc6f6cb078a7f82a86eb4684eeefcef5822043f5d9db8d9ba6e9e30a1001b5976c957e79adba38b78b9fb68546e19df9533c7c9fc008e3ffbf8d70703acd59394bd049b83189191ab816328b1b60fd1dafdcde064be4fb2b07736cd5519159094be2b08401f54bc128bad780649a9c51f54a7e1853b1c72052fc866aeb86a4a3a7cbfbad954a39a6261a393b6a10fc806419f6e92c36231561e4fb7504e51154bf73bc0855363d8bc4e5fdbaee72b5a7c000a5137f0b79eff134a08134c4c702ff116ef9c3e1e72770ca7d81df4787f287552787a344b3d6ddc7682c6d9a6768a0b358fb6c165a218cac8bea246966ca70ab3157904c3eb3952c62201140138db9e3757870b54ca30dda1a1c1d9c33269ca548b36bf573d2f5dc7ed7a5d8e0f9acc2f23c38941ff109c5a36b743ee69ff4544a543342591664c97ee5260ab49c659f28f4c82ce2b141f91773109410adeda9641006b326631493a40a3cb6fbda09228b79ef2fd9a94c2d5bc50db2685797d1a59cf4ece02f8674f34cd65cf65181bfaf591216d9694df357d1227e09d5949197dd74845fdf99ff4f09a16aaaf672d12b6633fb021bdb7147821a72f459a72200272350f15d42ef8b2d0a490c741c305c357604e6c6b552d3407be73feb1e6223e9983305d02dd9063a52f7c8b5136285b5d76927cc651181a6fc5b252d9e31a627eecba5bec85e927ccbbbe5da50f46d9a9627701c026a1f4ddc2313625d35fa6e06bbd2e788706d50ee714624d59ef2a1b60405c0b74f5a19f7c94cecacf81c27ace66ac03d2a334bd9b3bb494e02b7fe13f1025dc8386e341c74292c3d181363bb8c2174c782bdb7c4011c8e81a615504aa6714d3bd16ed5eb773c3078378b145d7f101559ebb8524bc69aa958e083906539c54956995a0fe4262a0e78c97d0531395417dc459d73dd29c7ddb15de254c512da77ee1ff5acfc8c674da8c445be43df89f692245c476ca5e9601cf984814bd08b7b63cada637d6a49dc5397989efdee756943deab435f04b53b540a43ae03ff7ef337e2cbf47b9cf00f3a9538581a1dab9e163441e9335b4399e03d50e97c6b59bb38ae1b35aa40fa589dafed408f0822fea4d1e99849aaf95c9549bc52c26b1dba329bb3c5d27c6f2fb2efa4e009f75b9de197cd1bb488fc0b8bf30a022634faf61ef392b419c15b577fd3fb5949faaba4283ab13b86eff459e47b8d721ee92afde1c267ce964c1a51242e8443d741593b8e2d46ade1ef6281352d71ecac83edf1ef73a65f9a0ad520c954293b8b94126ff69bcb72e5298b7d6737b036a2ab043a4304d9d7d8070456d2f8a013c45f7b716512658791e557e7a373db18ed896a10b98578c45439401b4f3586855fdb7193f31679679e18335e41824cf09e36d21ef6d0717f55a798cabf9be92bc3f1e808ed09f4a146d354d7fb20638337c09c2c9ee9c4eaa50db3655f627c8dfb2ad7fe1a77114c9901a228f7e6e35253d6ab5725d1359de9ade8c3f8536e3231113e48079fb3b3bad3101252e37c8a2c4da9ec729754be098e727e6e321b9582bc6ab592db97749b323ce264a85f5e63c78f240b7b8f5040d7c74dbb0d46ffd83a37e79e59f45217ff2320d2c6f075370ccff23c06a47465bf4bdf05f500a7cbf6e837e18b6a7403873d4ef3f348eb2c3ebb2765b31907c25ca3347df667196c4a8fc0619b94248ad7e22a9cf6d07299b3cedece1f561fd70778db4a9840ff436c9c2609223568fade7c471318143270fc1ad496a682fdc7df71cada268a51e6c3067117174dc8b06f3759a73612ebd6a2e0989a025edcd8e59995a09ccf817b31ea1fd784309387f290b106f4425b36fa007aeb6f4505e2a8ea5b0016b3409f8211de8f14b41911c590643959dec01e80bcd4b07bc351102b6b249f6b8b076ac09a2dfd64393de1fd8e6d4772178d2b97f65839adc1e31c6f46b5373cc0ebd943248d442796a5fc21e4f5da0269e9fe0b7506b9710943850d63a4460c8d6feb33096d1d5a57c716ddfe74096ee952bf420805866bb993c88e8fc68c77246d7ab6b73e46f0e511e2a76f10207a25c4cdd56afb1922693b9530f21449be96b9d502e614642d208a79c08be60e01776157263f2ac90d5c067b2925f497862e18c636077daa5135880e2a5f4cdeac429a86dc8eb045f2cff81437ef1c755b83d65c53a30fb684db64b0980ca138a27caeabcecd35146d4f25f5b4f3bbabea0e711385b47f929db1d78104501e20f64bc90c441837b11990f8f64c152904c26b91381b22bbee71190096f0c191ba8e13a5f372f48e7ec4cad6260a3f0968b37d50cdb01bd88a0815f8da9f393612a05b197ae9ddaecbc1c4e2bdb600db391ebddda4ae5b53c838fccee5b0687d5be16fd47b710b80dc7230191ee0797f71043a64813630173fee8c5ec35b4d4cc8e8c8c2253dfd605c5c62c89f2cf6182408cf759bc32bba742e7186c7acca6bf2cb829b6ef3af9b473e849fff3d6087365a3ffdb92fc0c30a6ef2d7690d8c6aa56193148877fb7202605a6b212a2e9bafa4bee6c03494a43a2101abc699a856a9f921a27f6fae2b8193c62640608a4ce5c91b91995316595b45def043be81c2de7900ac6f060efa737a0819249b8cccddc80b5f58787833f9d842819be1e6db5444eb2eb1ec49ad61499f5b8118edcdc2fe403a3f187146c9d498a3b7975b090d3e1883e03986aa8633be4ce424b7f59227ae6b48a0445c46760116533a385d41faa6f4a2fdff0eed51001d33d8bea0777191120d757cdf92ed939db0565055c14c5c24a5223b0ff2907d130b7b0be0cd6773cac5470d56521aa88d233944141d6cc2a365bd493f1b47696682f93f72a9011460df06f6949ef115d0c4cd3a9e06123dd4b376871a0dbb5111ead3fe5d1adbaf72028f3f8101be634a4f57bcf13ac7b122e59cd1b293710c237d239f8ab75dc00b6ace964c9665714d4cd9fe4a67c58f148c40328ce158727a761e1b4ff48f3d2952cc951a43f35a5ddd9d2d2b67a44a0145adb45073b950a41645db6d430ae3215d4960e05e7c31e3e5fc1b4f1d2fde6f790f5fe8d737b6f3771f2414195f0a41371426af9fd9a3d667097e14c89aabb651400abe8e929dff475cede2164edc8d214fc60b0e94df923598ea806736a1c8e1cc6e17df3f31b5f05c3790c8136b9a4c046ac837fac19caffdafa53522338d513d5ab1ee7b13bcb17deea6f2264e5e3033bfd76d26dd00c71b39c4a20e09ec2219a1577e306479cd7240f42480ef96b25fde0ba4569e17c208642b7f0b661e11217dbe7b60cc1bb49f18a3a999adb48c3f0324b6d13a22c128faedd2d5fc21a388bea25a02078a7680208e4745467569f8a2f1c6abd18b3fe0a8fe12ae68a22d8879c1564d07b246531e8989f71b848a70e56e36ee9ee96e5912c61407ae6645f8eb69e881d89ed30a3ee84e7fb575873f746f17e98bf6ef584efb278ace84a7690bd558b68d0d4ca689ffa63c56a69aaff50bea8ca7e73d533b0fa84609e8cabf91f8edaae0dceb12b4a978ded514c239055fb0e8a278cfb751102883e479caf5ba551263836ebc9f6270556ab73a2d78edde5710377b231bc0b7f085318d540a2e3d80fc27f9880eb6b1395294d6802f9c2756ca2c27f6da60ec788d8ab0a7f010bedd97d16292ecc29b9b70e927cddfb029e2f792547d0436ea3452548d7740e9059cb756a4aecfeef186581bc9f01d5768bb7d6c8f360e3e1122b2d5974244f4acd59d2c4ce4af99360b289fe37388052f56744c1841fbfc3c3d4ac186dcec0c8a6f95df9dbe605c34fb1cd4f94b8ca9986de296395e5fef909d9eda29703833eb154ba5313c84b862867200e06f3ebcd3b36cc09a1659693de33072ee869bc213659ab42a2c76041790ea5253be7f10e9d2022af0d3f04f07e1e7bf2811c33b561e10dd2e2c5049b0b5b102fa9a2685fdebb13a01a5ba8ba86da1c47cf64c6f3ef7d3a0a6c94ad1aef017a208e666d24c0bd4ff2cbfedd04c44360736ddcc12a8054d2f26532fa49842b15ea9234060a0782deeb0bd8aabd12e52dd66f79288474008e2fc488df43ed3a836f01b38ee0b78e3c915ecac23ba81a7b1f0dec4bfeaf2ce0a4e1f32a18d31548f7e9ef41670802c1fb535d85e1f9bb073c6022d39a33611ac6b1b640107cb3ab812fb62268c41c2b764aa5bf6364ec1d95ec288290190f9011a580c06f16b0e296422c8a0f936b0fd7ad398c68fc0b6d1d595da89fdea2f61ce4a43e27ffe7d26ddb2937635b3edc1ba0af6df0e6afd1667da731eac7861cfd60acabc654cd19b5405fa67eef7ed25cb9d60248d27e7c86b9e7bddd0a345bb1d4ac68d205c86adda38d06cc308ffecbee069f1ea66e9e6bbf035c71fc40911141952bb8dd1d7bd41bdc577b9f1696d016ee4099c74a0007e7b4ecb10cec9c9cc279aa6863c9c44953a63d4868eba6eeb04cc8463e76960d849cecd7cfa1ee41370e47770c896ca1f65b8577caab9cd49e9fab28ffed6612d27469680308f65ed30ab0d8abd09f18cd31e869f43f3414b76cf899e612962bd93cd9a820428686bdd916a1bba4ee8b1a

Creating tabs

Tabs can be used anywhere in the help center, but often they are used within article content. Our extension allows you to create tabs in several different ways, none of which require you to copy-and-paste any HTML.

The Tabs extension is bundled into all of our themes by default, so you can start using it straight away. The source code can be found within the extensions.(min.)js file in the theme’s Assets folder.

When creating or updating an article using the Zendesk article editor:

  1. Create a numbered (Add numbered list button) or bulleted list (Add bulleted list button) using the editor toolbar and add the content that you’d like to see in each tab within the list items.

  2. Click the Source Code (Source code icon) button in the editor toolbar to view the source code of the page.

  3. Add a class name of .js-tabs to the list element to convert it into a set of interactive tabs.

  4. Add a title attribute to each list item containing the title you’d like to use for the tab. Alternatively, you can apply a class name of .tab-heading to an element within the list item and that element’s text content will be used as the tab title.

     <ul class="js-tabs">
       <li title="The first tab title">...</li>
       <li title="The second tab title">...</li>
       <li>
         <h3 class="tab-heading">The third tab title</h3>
         ...
       </li>
     </ul>
    

The Tabs extension allows you to convert a standard ordered (<ol>) or unordered (<ul>) list into an interactive set of tabs using JavaScript:

<ul class="my-tabs">
  <li title="The first tab">...</li>
  <li title="The second tab">...</li>
  <li title="The third tab">...</li>
</ul>

<script type="text/javascript">
  document.addEventListener('DOMContentLoaded', () => {
    const tabs = [...document.querySelectorAll('.my-tabs')]
    tabs.forEach(el => {
      new Tabs(el, {
        // Options go here
      })
    })
  })
</script>

Options

Options can be passed via data attributes or JavaScript.

Name Type Default Description
initial number 0 The index of the tab that should be shown on initialization.
activeClass text '' The class name(s) to apply to the active tab link.
template string
null
null The name of the micro-template to use.
templateData object {} Additional data to provide to the template rendering function.

When using data attributes, append the option name to data- and use kebab case instead of camel case. For example, data-template="my-custom-tabs" instructs the extension to use the custom my-custom-tabs template when rendering the tabs.

Events

Name Description
tabs:render Fires when the tabs markup has been rendered and inserted into the DOM.
tab:show Fires when a tab is about to be shown.
tab:shown Fires after a tab has been shown.
tab:hide Fires when a tab is about to be hidden.
tab:hidden Fires after a tab has been hidden.

Because the original list element is replaced with the HTML from the template, the event contains a reference to the new element:

document.addEventListener('tabs:render', function(e) {
  
  // The newly rendered tabs element
  var tabs = e.detail.relatedTarget;
});

Related extensions

Animations and transitions Free

Animations and transitions

Add engaging animation and transition effects to elements.

Carousels Free

Carousels

Present content in well-defined and easy to follow steps.

Content blocks and icons Free

Content blocks and icons

Display icons against categories, sections and articles.