I have an html content like below:
<div class="col-md-6 col-sm-6 additional-nav">
<ul class="list-unstyled list-inline pull-right">
<li><a href="account.html">My Account</a></li>
<li><a href="wishlist.html">My Wishlist</a></li>
<li><a href="checkout.html">Checkout</a></li>
<li><a href="login.html">Log In</a></li>
<li><a href="registration.html">Registration</a></li>
</ul>
</div>
This HTMl content will be dynamic. Means parent element can be div , span , anchor or any other html tag.
I want to get the first element type using php DOM.
Like in the current html , parent element type is div.
How I can get it.