Check out example codes for "can we use onload on label attribute". It will help you in understanding the concepts better.
Code Example 1
The onload attribute is part of the Event Attributes, and can be used on the following elements:
Elements
<body>
<iframe>
<img>
<input>
<link>
<script>
<style>
Learn ReactJs, React Native from akashmittal.com