HTML में किसी एलिमेंट का टैबिंग ऑर्डर सेट करने के लिए tabindex एट्रिब्यूट का उपयोग करें। यह आपको कीबोर्ड पर TAB उपयोग के क्रम को बदलने का अधिकार देता है।
उदाहरण
<!DOCTYPE html> <html> <body> <a href="https://www.tutorialspoint.com/current_affairs/index.htm" tabindex="1">Current Affairs</a> <br> <a href="https://www.tutorialspoint.com/codingground.htm" tabindex="2">Coding Ground</a> <br> <a href="https://www.tutorialspoint.com/verbal_ability/index.htm" tabindex="4">Verbal Ability</a> <br> <a href="https://www.tutorialspoint.com/quantitative_aptitude/index.htm" tabindex="3">Quantitative Aptitude</a> <br> <p>We have changed the tab order above. Use TAB on keyboard to view the changes.</p> </body> </html>
tabindex मान:
0- प्राकृतिक टैब क्रम में शामिल (डिफ़ॉल्ट)>0- कस्टम क्रम (1, 2, 3...)-1- टैब क्रम से बाहर, लेकिन प्रोग्रामेटिकली फोकस करने योग्य
एक्सेसिबिलिटी के लिए तार्किक टैब क्रम महत्वपूर्ण है। अनावश्यक रूप से क्रम न बदलें।