I am looking to display two div tags (div1 and div2) side by side on a single HTML page. In div1, I want to include 2 anchor tags (Create and Insert). For div2, I aim to create 2 tab divs (tab1 and tab2). The goal is to link the Create anchor to tab1 and the Insert anchor to tab2. Can anyone assist with this setup?
.container {
width: 80%;
height: 200px;
margin: auto;
padding: 10px;
}
.one {
width: 15%;
height: 200px;
float: left;
}
.two {
margin-left: 15%;
height: 200px;
}
<section class="container">
<div class="one">
<a href="tab1">Create</a>
<a href="tab2">Insert</a>
</div>
<div class="two">
<div class="tabs">
<div id="tab1">
<button class="tablinks" onclick="cpp">C++</button>
<button class="tablinks" onclick="java">Java</button>
<div id="cpp" class="tabcontent">Create in C++</div>
<div id="java" class="tabcontent">Create in Java</div>
</div>
<div id="tab2">
<button class="tablinks" onclick="cpp">C++</button>
<button class="tablinks" onclick="java">Java</button>
<div id="cpp" class="tabcontent">Create in C++</div>
<div id="java" class="tabcontent">Create in Java</div>
</div>
</div>
</div>
</section>