I am trying to create a navigation system for two divs using tabs: Year 1 and Year 2. The navigation is working correctly, but when the page first loads, neither div is active. I want the "first" div to be displayed by default on page load. How can I ensure that the "first" div is always showing when the page is initially loaded? I have tried troubleshooting based on various resources, but still haven't been able to resolve this issue.
For instance, currently both tabs are hidden until clicked on.
https://i.sstatic.net/UMV6D.png
The desired outcome on page load should resemble the following:
https://i.sstatic.net/pYkCA.png
Here is the current code snippet:
section {
padding: 150px 0;
}
header {
padding: 156px 0 100px;
}
.it-icons a {
display: inline-block;
height: 3.5rem;
width: 3.5rem;
background-color: #4582EC;
color: #fff !important;
border-radius: 100%;
text-align: center;
font-size: 1.5rem;
line-height: 3.5rem;
margin-right: 1rem;
}
/* Additional CSS properties here */
// JavaScript libraries and Bootstrap dependencies
...
// HTML markup for the tabbed content
...