I am trying to have a header inside an UL
since you cant have H2 inside a UL
is it ok if use it the way i shown?
<ul>
<li class="head">News roll </li>
<li>News 1</li>
<li>News 2</li>
</ul>
I was told by one of my friend, its not a proper way to do it and he apparently doesn’t know the reason.
Yes, it is fine.
As for your structure, maybe you want to use the
h2tag outside of theul? (Assuming it’s going to be a header for that list).