Page 1 of 1

HTML specifikation

Posted: Fri Apr 02, 2004 6:43 am
by Pozor
Hello,

i just installed smarty before, now i saw in the manual some html code who is produced from smarty:

Code: Select all

<label><input type="checkbox" name="checkbox&#1111;]" value="1000" />Joe Schmoe</label><br />
for me the /> looks strange... i looked it up in the specifikation of html (4.0 and 4.01) and there it is different (like i thought it is right)

Code: Select all

<label><input type="checkbox" name="checkbox&#1111;]" value="1000" >Joe Schmoe</label><br>
Why use smarty this syntax ?
i saw this many times on sereval pages.

greez Pozor

Posted: Fri Apr 02, 2004 7:11 am
by twigletmac
This is XHTML - it is the next step on from HTML and requires all tags to be closed. Empty tags such as BR, IMG and INPUT can be closed and opened in the same tag:

Code: Select all

<br /> instead of <br></br>
Mac

Posted: Mon Apr 05, 2004 2:05 pm
by no_memories
I just finished a fine tuned W3C spec form with fieldsets.

http://www.thexvector.us/?pg=ct