If you need to create a tab menu and validate it in HTML5, you should use standard HTML5 attributes and structure while ensuring proper functionality. You can use data-* attributes to store custom values that you need, such as view1, view2, etc., and keep the rel attribute for its standard purposes.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tab Menu Example</title>
<script>
document.addEventListener('DOMContentLoaded', function () {
const tabs = document.querySelectorAll('.tab-link');
tabs.forEach(tab => {
tab.addEventListener('click', function (e) {
e.preventDefault();
const target = this.getAttribute('data-tab');
document.querySelectorAll('.tab-content').forEach(content => {
content.classList.remove('active');
});
document.getElementById(target).classList.add('active');
});
});
});
</script>
</body>
</html>
http://www.menucool.com/vertical/geometry dash/accordion-menu-css
If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;
If your question is related to the Tab Menu, click:
Ask new question: Tab MenuOtherwise navigate to one of the following forum categories, and post your question there.
##