A lightning:tab keeps related content in a single container. The tab content displays when a user clicks the tab. Lightning:tab is intended to be used with lightning:tabset. This component creates its body during runtime. You won’t be able to reference the component during initialization. You can set your content using value binding with component attributes instead.