I've been experimenting with tabbing in HTML using a tutorial I found on W3SCHOOLS.
While the source code provided works fine, I'm encountering an issue with automatically selecting the first tab by default. The tutorial doesn't cover this, so I'm looking for a solution to have the first tab be automatically selected and displayed when the page loads.
<!DOCTYPE html>
<html>
<style>
body {font-family: "Lato", sans-serif;}
...
<p>I've tried adding the following line inside the JavaScript for loop but it didn't work:</p>
<pre><code>tablinks[0].className += " active";