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
c20ab3578e27ec92b770c03076efad7091cbc8b0f1b8e2c71cd1c2acdcf6c530504e3e709377d784be3456aed113bdfb40413d68df3d25aee7eacd7a02804bbf0172d9040554a152555354f02900b9a4050c0f5788814bd429f4b7f3a1cf609266240972c4988d0bd60e94c8668a25274a61705440077b05abb07886efc934908e951dd02eb5fc1777511c3ab7c2778455420ac24eea4bde76714fb6469ed0cca79d2409494ed0a863941cd0e5e91f6766e92470863b3d9bf457dade9eeb15cb5a63073d403388f240ee3333db78a9644c08b72d99814ac657380ebffe6060e947cbe452435a6ccca678315b990b1bb14afbd0f2979b1a419223705c6314248df27a8993bfff6955cd1ce13dfccc9c0e6ecd9caa452fb534daa88746bf3224b2c062a50aae2021aa966a548e8d18c2b95586b7d48b022bc60b81fba2c89aa160a331e7c2192f252be246968847588c50dcb8fbfb0a21372d9ca203eda2f46f30bb09d7809e66808cc19f9877cff57a8cebce20890d807552ec7ed4e142077953332e078b2f40a8ad08856c656a2fcd2690619f55bc082c86efad90cd41b3cfd35f1f6274c01db67c23a5bbe3e03f41fd094eb064de52ea7e131117c6b8316d3ac1e945c1caf53d33c1f7e3217915f6c4b1069b18e46b607353571bbd1ae59b401e1149b53487829095f6230bddeba862ba623a16dc274d83e64d0e5470828a163400122833129894bc5cfdd6d4ca803db313559b845af3a2a2988f6b87e1b4ed44b1f5c35238b49a27745e6e3041ec766e3a447ee7d4b6bf388168f2e0f094002c7c4649c18d41c2f1899c890607c7428b0597b8f7885f2007c513a65be33c6fe15da3a8f0269febf188b750cd024c03ad9b6eae452c7e60dabab7aebecfe2bc60f7238a376b927c94506dda9f7680326f57d409eb061246d36e8cfab6e3c67118fa24217dc4e6fff0d94fe641fb9b6bf88b8f74bf31fb54f66856f319bd965bab3c4a7fc11c99b1e4ce5a9a1cbbb63ea677d5ba334ffed31310cebffa300a037bf8085ec96bdbedb6804f0b4ece341775634c4ae263cd2b371679a52a4d9fa869a1c99a01c5a9466f884cf68b754fe28cdd8f4ead4734a721c6d419fd9bca04d2076257df53a84c4a64963e9b3c7e2a994997586d59dd93cceefa83eda1a21f8d09c2ed810603bb7e2e3f060d726f75ff14ae8b32bce016bd9a76e7c3fe3ef7de0a27de04ce1f163b805798cf03509d9d74faff6730364eacad24dc62940dd65ae2078732cbd4afb6e921c95536d71d7436b377daaca3d8fc1cb4b4ab2e6a65f13f0703ad921d2e1d587c94a258c55ef9c2eee488a31b0cfa2e17e16165143049401309271de24a51042be2c00cb8bda07bb7b49caf158f78b93f5dcbdb65a6210953ed88aa7770d1bd515a60b664d6487cfca80cec95386048b64bb007e3871e7f49ea34a6838e82aa015be505ba997cbe648171b56d4fd70325e7ef74e2e929ffee36121351a01d3680655f7bd7f5ce930602c15eadbd78dded9ca461b4fdc2f7b78be954dde8e318605aede559cbe979c2b4ba30ce2e9b79da4b74d696c6969ba8e065cc573a94eb14a429491a5c535fb5c191971754040f71c0086b0c146fba4aa4d961aa7d37ae7818bcebbb5d462afc9d5cacb3f33dd200a4b7771941afcb182511c6b5f1971a9ecfef069a4df0dc8d3c8f69b1689eb588771851de63d4747637de65c4f1a77ed82cc40d3e42b873109ec4a7df3c3b701565e9c91629883edbc7ef6d8e4d60707a892a7a0d36775911201774c7def5660fea278840b37a2b8f4080ea27c1741776f50cbf70008f8d7b676306f81578fccb4bc940509304e9eb5d91bf341da672fc5d178ab07ce460bb645ba19d66ec187ff4fe77def3301b4902a4d8bc354d3093afd750b07e802f5c44963e42572258d3a9c9f1942983334774f4402311406928561972933e806263672db92014f7366db1a596e5f585d1819fec2ce920db4cf91a847e4c174c667acbb8eaf10068e55626cfafe84c6f3e6227770e3af6fe0304cf7dfce2fc74a7e0ec6fea364d3160d1bf0a4bb6423846a35c0f979b07483b385be0d8a2a95b406cdc3fa48ebca420a0e489821e464a1058b392c4059d81b9cc9d75dcb8720f5b57b97409f6ec180735b8b8331c4be4d8c338a38cc916e7b1e2e14554995f69c4b394d3e47485bb319859c034284fb52d48f783e25a52cf1f786b0b5fe7091750bbfe68835a885792f925cb573dcbfd6946222e33e274f7b7d9dec2633b7ec8476a806ef86d2b1e4fda4f03c8cd3b7868e0933914b920840cb0871f929467e5d183bd530734a521582af57bd7eabdc861bc88bafbdd0c231bc18588cd52cde5fbf5f71b3f4d09e4fcd96a17168fddaa819deb2cda83f0825982eb31e7e37f896df490bf972761b37c6e121cc7f898b5d41dcf03bfc5185416eff67b4821a7edaba631a36d82654a0f08a5c082ccbd125d964d2b5449d5c6e031fb87af7bc22b99fb78a131a24ab39eef4c296d87d6fd41d18518796332cd83bd865816a391baa9115649b50a12003337c88610fa0a315001bb05cfaffb2b5b37f982f73c80e15aed81a2dec5863d1057a330903f2c9f843c5c04a9fa118c3c4ba45b02e7269010366454ac2af1de8b258f5b24108324f73a84158cb3fd04dcd1901968dc4113be3be0230e910bf1968fae446ed3c105f53212bb6838f351bff594baac92c156d77e7257e75605857cf9564d3d21d467d08a4a2b9a6690fc2351f1d99ef21de940ed092eef5edc3e97aec6b7fd9dc014aab81fd11946c087642a0139c5609dd2218188720a78da1cdd2dcbb97b86a019e8cd0e35ff64f8ac81ce843d83a906be561867bb494ac051120f850e3aacb32fb72ec2f31df5a5a7c2b82cf8e3827e164ed2a41f693b26d7cb53176e3f7c739d31a7bceae086a1511cdba0e28e6146711d43a946aee0c664c4641b4cb21208af30a0326f3104bf82549e32e9c29f9f1017f29aaf7e858d3e93a8775b40f90b0f84c974d9b0bcd8fdad7a397b5ae36749d4be2a891db557fc813b9d32a0bef816fb50dbb8b6c0bfd9a2f90820709a42f790fedf9620552dd06e085588009abe6b6a3437957290b5e01e2a497e0f76bbbcc9a80e341f38233e0a677324c81907bd04b955d97ac6c7b942a2ee9bbf705be0e16420820c79db6a9ebd4fe8eb6b4495d19d23ea37e77a0a2ffb22ebf90dad1f2234b8e861ff3857d3198af1c31d45f886a8e01677ef686f0f10a4b43f071524ef50089a5565d16a900063d5399bc0d38d408c2c625f866f0507f9a4f892c7d1e42598a3617e34a8c449ba0038edad005588065f57afa6b8b3b4d769b3e160af99c8125fc58a120895d17c7a4db31d29a562a08b958dd26a49db035274b5bddb4f51b51ef44f30e90f60d0c4ab009f12c294369b37217aefe7d5efeea282f2164ed49c788f2c317f8e50aa4a44809b8424ba636c75407e87eb1278beb5e09489db96666430b59741a302a767e32a9ddcfd1bd71f543df1422a2c4bcd317204b04b8473db1322c06e4b5a8668f7655f756c973c959ce5c2df6d9603d766ceef34cbe6c6ea3acad2925ef42617b014f38c42a2a98407a8812d1d896d2f08ab0e2f3b5cb1be2ebff11c7ab3b39775597e4a3e72f9b679617af746cb215be2e6903b14e9ac5a9c17a9a7ace277c143a5fe457b90eae6c1b87cb83328cf64658ac01981d89a7f31cc3602db38e4b334e424932172ae796350f7776d9065da9f6060dd5fe9564b9c7da602838d25e0df6dc3e5ef471f2d5327c8f5e2cd7fcb3891a4ce960d4c123eba9999f975a82d64305df3fe8cdf42a5e60fabf8458bddd736f26ad2e570b6854afeeb46e0925dfdac9ef4e4e3c6b29c0b2ed60009d1aebb3ae369b98bdd98ff09b67ed8f59262d03f93719efded66d6349cfa4b6392641118cf594032a20a9df5c95b939350be02ee2b0f65a2876cbade91e36b156bed9636709448a40262f86986305cb428bcc899c57296271461f62e1ec4a5a1178e36511c410603f1b36c6ccd359817523daac515c569174b1bb5bf02602292bbf306e5fbb67e52a6630a5b9d7b77d59584806c65d29c5b4fe2f6a79453dbb4266c02350949979830e971c5182c5bb82491a306778e3789523eeb85bb95727f0fa5f6745d281a1ad73dc404a9b4fccf3cf3d5248ebbb0ba74f119046db20ba52ec59c60a95e8aa9ff198d10bd3b41e711fc8a0a3dc1401504f6e07f6aa22f21fb1e80b8b0bea1b4be98b36e2d4bffcf3e9882b72d122c0f86aeb219149ad53f0167f33a3324d12d1100ec79a6fa7a178e90d0701a34927d1f58b8afbcb65661f6bbaa2616a7ada5ab89ad5b07ad44dcdb7e52bcec03542f2dd2b87e8171f541f627f7731d9292dcf343df74baf13f0caa7106b94fd3a2bbb55f764b40e23b1299d65105309300116f576a0ff2df58ed5c8d59a509112a0948631d537e4324951689b7f27684071c473e58d94d5eb8d8cd99fed93d5aef5c9f9a9b3b15651de61d344b4007c5aa2504527cf30916966863b6a5f95fdfb55f78d37271565d963b2672a61086e29179679b252e90c67f43efe72877db56c4cc63d2b233d3517d5184fe9e590e704b727916a4a3d0bb1f87acead2ca373c6acbf9bd348123b81e02fe45c30599e1e8da4f4af3bb143486b695b561c511c94dbad82962055f8eb0749009fe47be37a244be7eefb311c4a24c989e92f9d7a268c20ba813d5069ec6e51d07fbb45c34a02f0b89e8c1f40a2ef86d6e289cca60d144f7af31677d8119713479ce7596cd85f3f5adcbc58f4ef8fb5b64de613d842595ec562b3db6c48bc4fcb673de2569c45ecaa66b07fa7720c55f677cad0082eaafe154591c0925a4bead977a792a1b904ce72a416367050427e903502a33098b9e48fed172dc02ca66105693c9abf0d163f110366f04a51e29697a209948aa356d15ea2e0290a88f933508f3d206f72c569a06f7162befd479496ad3a7b09ccfdfd8052ac5db62703e04996d9a508be429ca126f8200c0a7eb47c8287a7ba9788930a96e2d35fd1f8855148a6a69e775df8c2f9fef0dfc1273e12fddb8b858c3697d9313e8ca176d1478d364171651394a9f5c579f012da950fbc1827b60ecb0fb09dc22cdab89922452fa349736abf3815daa96524ec2d8c014f1adef3a323073cb1affafbb1f52cadecca6cb01f3878f11161338a1075410600e9f24e5dc5cb32df7eb8a33fa218350f262dc0d45c72f116dde3bf637ca5b071561dfef0d2b0d583e0f8231a06879a9808b5e3b1464cfe2b7fa58722f755ca342c82b8de0c5fab7b5a2c7e1b248d8c160c180b8e2b52cb6f6028bfea74b5eb262f612ad19fd65a2214d45310124edfafee01d723a20f1d432ff2f3764ab3e2fd1efb8b56f29263a4e4397425ceee631b0fdd50d92cf563d8b006780358aff9cc7fb9e0109b976f912df3d22488b5ff8ffcdc4b744f1a6b01f62ab7cef145962ad0b0c3c232871aecf8d470aa299a378478e679293b66745132c0427ff09414c5b8cea48c13ae7df0c22c890848f6b7cec5880a7fd61b68bb962d23f905f708d20a19d2772f3177e720601b6e0a99cfdab3a42dfde1df399cf98a22144e6deb97372ec3928473b88324941192b93a664a6c796a95ba22bb6a2c992e0e6f1d7e3882dc0b41b354e43d7492255aad31ec541bab24b67f1aadcaa1ee857e55852a49027476c6cd450faf7d0120d372c50e48322578f25846dd0cf4f2bb3d15b623c0ae1edaf8b223deac639a6e1e0bbda3504484234a66f9330845363be780d4bf756ade3c51d7ea705249f7462f52be0d06c491b477323d6f8f7a1719fc5ca6555ba5cefdef3bb67879b7da54540e3d95dbe9e0bb65f881fdd859ae86dc081d281e886050f4272cf527cfdcd10a74e60746a95b35f82604f99c515580bd0a535c381a3262a166a51427ddd801e1caed2e1e36d938b7bc15af67f80d8c78d1f98e4e7a7a799a0a0bd46f283fada198ec44e7053034c92d46e8c859f06820effd5b18cacb29af465e2235fabb9f518951052c57c6760528e68a0e48fe8f0255043e8288a5d17e9129092c380336e8b27c567c6b837f7fba852b0fb5765bc28788898edbdb90b358bcca1f7c23dd277a98059afb8e7c3051e1d85c7922cbfb2acb60ba3069eca85ff15c4510ab70bb476d2a3b344eacc6ee0456cd6bfbb852a7fd26508617f9fc0f03dbd91b390062c3d27374826f9db4b8167a53830cc9bb03b18789425f2ae39dd8509d8986bba9a7f48a812d28e02857a4bc2227f44929f60329dbc215e9f4e4f7711ffc1fd1898eb8ac5f0761e6e04ea462611539da14ea813eacecdeb23b942afece4fa6e39c7c3dea361fb2baf537d6967e6efff3b6204cf9499e174f9b6c534cde055f6eb9a61bba9e59a68c8b60f0ae0fe974c482acc65d6f5bc04d9ae92aee06dff71c24dc249af3d609898b35458c0ef176ae3e0adf1c112a8b8c5858f019d755e9cf31c9ca9676c59a98e7eac9c48e31dff18ceabdf90943217c832a9ba8f53f7cf3c4597be6eb759ed418a4e5e8640a305f5a97ca936b18da74f2e24ec8fc36e5710b3fb566ddd736ee24348897bd38e9e037831d8103c487e76b09a0f998dbf09900cd1285016254a38a9b027048ddc3728f0dd13c4607a5b639a907b4c31ab656e84a2f9672f69ae6c598cc47d578881c0329b6c130a187dc235cf5dbafa3780ad2865d89dec091f6b60ef407ef5f879f8d62821f96a80da770dddfec9acb1ff96cb4ab9d26d124d7c04169a8c2e4d70d2cd031c2a5b4d20031244afbe8ddf2368077feaf89159c1a264d42410bed5b2df26d72cbb15a037eacf4f9a5047cf4629f66f16764f2a89681b6aca0b151017212200960747a06962e7b20faf274e35a7ac492beff27089ee587a03eca4f8a7d1f097ded7360326413d5d09c5d952db3d67f2d82973ad1cc3e06ff0da52ed77fb0c8ff38a54bc0934b246ad392101806a45ce774bc416be4c6ff4cde100df7535b3d4a52210906ce1af7c816bbcd24d3cb6be63d164fe561518ad0b4ddf15a2e53d1d1178cc8fc0dea97b12e2d5aba296b451bcce2699bf92c7ae780fe225d0b06cf69de6b345300881147a28dbb04700b3a27d5c95fff36a8ae8fc90ba1c684f759c3a7d4331f41430fb379505ceb4259b53a6e6a79407f71b4979c98eba96764202fb8c73f493805f14afe6bb69e4e438c5b04c286b025fa58eb6f10a5a24057cfc2257b862d5639dc752d6ddcef7c02fdb381dd5e638e8e472187fcc692bf377c43e2cc05d99ae268708da06e7a103ec4c95dfa15e1e66c6a34fb9dd7b4e87a93d2228b1a04ea9ff40c74a7049d9fb9cbdd546edde46b874af14d101a27ce47cff4ecdcaa0aacfaed9d89e6350e64cdee4d6065fa124f5c658f016c4380783f2dd2b542a6d9e368dc342beb84c814c7dcb048cb4c1028cc49feccb6e02d9d7079e435ac485ddb308cabbcbbe2862ac36c8f97c547fb1ecb884f93aaed3057e67fe60738d759564d1aea106c576b2d2a70d7ef949a75897c2e2ec29cc77b0d8d1a2f816935b63aced90a52798c6f98ecf10a27150d3731f60f7134f41eb9706215c4847e6e822236120d6efdf4596af9665bc0921a2463b9d4e6ec109afe8c39f35a8551aaf743b0d6fa0c105b32d4306b832ee166a828092bc080f87ad04dba80efd1e3dbe5415bbaf100165bfcbe14c72d702a5eb74e0fce9cdd6d74235ec9adaf5da2a818cdec5b785e556f79f7e573a0aab47f03865dbe2beccc428d818eadbfa47cc696f432370e3302fa34a1cc728108661c41dfb793f4bee40e462bb4c738f5b7cb38146571ca1374df5780df71fe985fc1d91af3d677631f0ca4be4578826edd0de408f2ebeb4b38b10aa3d38affa07054c6d2cf94945a61138fca89c3ee539be0eda2ba4c4aad27c0f7723048ad86a239f62a3e6e06a027cc205399769d4947471c6f0b1473f9606949dd05153a0c5f2128824df1f34b0578aa6cc0fee5619c4fab6f5b0a8f438f5332d96e3eead8b43c3bf8f1b8a1f5805588e939bcbd4dc8c52329b7c38a24d68ccb0b31c6187685b9cb30d6c2f3d56c3cb746dcebe52da3b9d8512887893784ffbec509b7a792832e8d522735efbe4dc4503ab2c8a0e2322763d151450e740f52f393721023bc82dc507e588da1db8fafd5771d89619072296711a0bd4bcf6d7d60395d5720ca9d333511b9f25a089f225cdb22c7fdd515e2138ec3683ede2afddfcec0e2aa7a30fff4717d5216dd3d35553af8cb988f83c3cf386d050d72e238bcf5ed1b023c7de96f9d92b4b826bda331acdad63a69e0cc25437e0147ff2fb81ca965370c2165c96f06b6a80b45160438e831bfe4cef4177a6c86d4c81a908b8c13f6f049c71cecd6678e0aef9db31a391b802da8a508802bd7a32541d7137e4a56fe892373ea3d36f40178d2cc57f8013225ffba0441a8248712f930243948ecc365d99e882f8600e7946a42398c319afb037be8dad452ebdea461b0dca3d2a2b8b54f4b7ede0d8d7823a631f014924ed07984409f46d46956b7484dc65fbcf3834d233b4ccef444af1783b4991719510708d74b7e6dfd5e4ed3f079a5a02d2b90ff7896e0d4fbb184679d81375ed29e1fbcd88fb91a988fd1df1328d7ab4a7f9f54617ddfa79887dd6b23a06c987c8e4c804a5e94ba2f2b41f09c4b428d5f50498f771739c738887c0a8088819dbf480c5e0194b898e59a6cbc5015286d30f6a47bf4728b1d92812fe038e1d812259588d729d22e5e2def40ed896d485a5876b2bca5eac6635640d45edba38f206193e4e6f5d1a755af79a641ffaf99a5b31f478b428b3e93e7e8d3f36febcd23635b29b4c5a14c78ffb03ed53e29b9470146773e0609a96c4038249616eb88941a2079248da9f6dc97947f5afc4c36810020e8c080c6898dc4dd6a66a3dfe8421496587f2fb09960cb481527acddb0ed10f8666f3418c94d54c5e278ee3630a2aa4a5a7f5bb730ebc6cff3f636c7c395c115485ef305e183cf20c557c68c287125421648e678902889a8273de55bb787872ef117c52ab9b6dec3928273cea0869e49e015f8cdbbd78e87c7902c924afbff2422ed607a7ee53480e7e5c380286c5cef1e48e0cf7923e772b49e61c5e93181d64a77ef29629ffa5398fd03229fee40050d5341f2e9b7af5bb55db18b2bd411c3f36aadaf2e1acf67bc4d9caf8c59b1968701fd1c264b20d07861315e2cf56f2a30f73d995dd53e3557467e4d34e79669fb6e6d205a4b184ccfbde8eb85ef417d9f0c98ac93852cd53530731966ad94fd93a05d9bfec2ab7b1020cffe8255871941201a24a596ff817ec1f5c7d758861a9a3ad3cc511c4175fa134df91f52617c62fce46499de4db8dfbd0d5aec9fba61a171a63b1260788c63f41939b97d612a7201ccc2231b53725abb8453f1e167c82649f4f0700556a9d1a10e426a7498ea6d6163c61720a5b55fedebe45da9a0534f1a980180520de8c319819696149dec37313fd3b3ef3b42153c4ca2809c8d86db2f590de5f29f32e61d709f0447db3aa810caadbcefbb7a0044c1f2d59161cfe7c08c576dff8710aad9d1cc0e947016ae5401d4ed87b320717a6dd9ad6b3bfa1b95d6d2ad1c1679d68e7608b811510178b7799f2c04ddbb36bf5c7068b6edbfa0dd0bbd7f2c07883dabfcfac9dad2303d0661b3bf97ad20656d94b9e9af19a41bccfc9b4062660dd50469447256b526a4a5174d90ce29d20b1ee8df6cd0741d7fe5bca6a7c65a16acfdf3b4d34116bc02c452dc005af1d8bc05378afa1e996bfad06e5fa5d9e8763ad7d0a82dc9a5813a6889ffc91cf059cb958ecb459737e354f47de702c0603112cafb0927e7239769509c992bcca825a0005cb776bf1c659c693e08592b94e22fdb45f3c550dd750d4e56e0d4457f1436176be1d6f92ed5399d6ab7837d8703388b45e664fcdd06d1e587e1167008b8e020c56215236c4a87b52ef221e0ff0f0fa312b2566700352cf51f7882f455491ce254d24560b6a4ea4b7f3052deeabc2aa683d387c00e1fda9cde79fdfb6ae4591489d28a6b023076bf5bc520bdbeebd05

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="js-tabs">
  <li title="The first tab">...</li>
  <li title="The second tab">...</li>
  <li title="The third tab">...</li>
</ul>

<script type="text/javascript">
  ready(function() {
    each('.js-tabs', function(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.