Tab Menu / Posts /

How to make the Tab Menu validate in HTML5 as the rel values view1 etc are not valid values in HTML5

17
I have the following code:

<ul class="tabs">
           <li><a href="#" rel="view1">Specifications</a></li>
           <li><a href="#" rel="view2">Filtration</a></li>
           <li><a href="#" rel="view3">Information suppl&#233;mentaires</a></li>
       </ul>
       <div class="tabcontents">
           <div id="view1" class="tabcontent">
George  10 years ago   viewed: 10412    

2 Answers

0
In your HTML, replace rel with data-rel. For example: <a href="#" data-rel="view1">Specifications</a> 

And then open the tabcontent.js file with Notepad, and search/replace all "rel" with "data-rel".
milo   10 years ago
0
Many thanks for quick response - validates now as HTML5 :))
George   10 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • 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;

  • When you want to start a new page for your question:
    • If your question is related to the Tab Menu, click:

      Ask new question: Tab Menu
    • Otherwise navigate to one of the following forum categories, and post your question there.

      ##