0

Why is data-email used as an attribute here ? What is the use of it?

 <div id="sidebar">
      <h3>Contact our team :</h3>
      <ul id="nav">
         <li><a data-email="rohansharma@gmail.com" href="mailto:rohansharma@gmail.com">Rohan Sharma</a></li>
         <li><a data-email="rahulneha@gmail.com" href="mailto:rahulneha@gmail.com">Rahul Kumar</a></li>
         <li><a data-email="neharahul@me.com" href="mailto:neharahul@me.com">Neha Sharma</a></li>
      </ul>
    </div>
Diksha
  • 23
  • 1
  • 8
  • 1
    You can learn data attributes [here](https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes) – Simone Rossaini Apr 13 '21 at 11:17
  • 1
    Does this answer your question? [what are data-\* HTML attributes?](https://stackoverflow.com/questions/30417852/what-are-data-html-attributes) – Simone Rossaini Apr 13 '21 at 11:18

0 Answers0