1

We are using Bootstrap for implementing tabs in our application.

Putting Tabs using below markup

 <ul class="nav nav-pills col-sm-12">
   <li>Tab logic</li>
 </ul>

Putting Tab content using below markup

<div class="tab-content col-sm-12">
</div>

Tab content is Div to show specific view. But When I check browser console, I see below error in console.

Kindly suggest help.

Browser Version IE11

Unexpected DOCTYPE. Only one DOCTYPE is allowed and it must occur before any elements.
Extra "<html>" tag found. Only one "<html>" tag should exist per document.
Extra "<body>" tag found. Only one "<body>" tag should exist per document.
Alex K.
  • 171,639
  • 30
  • 264
  • 288

2 Answers2

0

My guess is you probably have if IE statements in your HTML.

Following the official documentation of IE: "Conditional comments are no longer supported".

Please provide your entire code on http://codepen.io/ to bring a better solution.

Jonathan Brizio
  • 1,087
  • 1
  • 14
  • 28
0

It was because

  1. We were returning Model to landing View (by returning View as result)
  2. Now from our landing view, we were calling @Html.Action (child actions).
  3. For each of those child action, We were returning View as result instead of PartialView as result and hence were getting multiple Html Body tags.