Chrome and Firefox repair my Html tag? -


this question has answer here:

i have following .html

<p>     <input class="inputname" />     <ul>          <li>one value</li>     </ul> </p> 

in google chrome, firefox , safari got (in source explorer)

<p>     <input class="inputname" /> </p> <ul>      <li>one value</li> </ul> 

i can't reproduce issue, come smarty template .... somewhere have no idea where.

i don't know look. every tags closed. have ever seen problem ?

this because <p> tag cannot contain other block elements. most-likely want use <div> instead of <p>:

<div>     <input class="inputname" />     <ul>          <li>one value</li>     </ul> </div> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -