Element h2 is not allowed inside the span tag

by Prakash 2014-04-18 17:14:09

I got the following error in netbeans IDE :

"Element h2 is not allowed inside the span tag..."

for the following html code :


<span class="comments_bottom_icons_con"> <h2>10</h2></span>


It is an HTML validation error.The fix is to remove the h1 tag. If you want to use h2 tag, remove the span tag instead.
1358
like
0
dislike
0
mail
flag

You must LOGIN to add comments