Check out example codes for "html tag data". It will help you in understanding the concepts better.

Code Example 1

<p title="I'm a tooltip">This is a paragraph.</p>

Learn ReactJs, React Native from akashmittal.com