-2

p1 appears to be an empty p and the rest is displayed separately when I inspect in Google Chrome. Why would the initial automatically close? I've checked whether the tags are closed right.

<p id=p1 style="display:none">
 <p>
  <b>You have French (8a) on:</b>
  <ul>
   <li>
    <b>Monday</b> at 09:45:00 for 01:30:00
   </li>
   <li>
    <b>Thursday</b> at 12:00:00 for 01:30:00
   </li>
  </ul> and have a grade of 8/10.
 </p>
</p>
trinalbadger587
  • 1,905
  • 1
  • 18
  • 36

1 Answers1

-1

you cant use Paragraph for this type . you can't nest things on P tag . for example :

<p>i love chease</p>

so if you want to solve your problem . use Div

<div id="p1" style="display:none;">
    <div>
        <b>You have French (8a) on:</b>
        <ul>
            <li>
                <b>Monday</b> at 09:45:00 for 01:30:00
            </li>
            <li>
                <b>Thursday</b> at 12:00:00 for 01:30:00
            </li>
        </ul> and have a grade of 8/10.
    </div>
</div>
Abolfazl Ghaemi
  • 424
  • 2
  • 14