Chrome and Firefox repair my Html tag? -
this question has answer here:
- should ol/ul inside <p> or outside? 5 answers
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
Post a Comment