PDA

View Full Version : ending Tags: ">" vs "/>" What are the rules to end tags?



jPaulB
30 Mar 2018, 08:20 PM
Hi Everybody,

I'm confused between ending tags with just using ">" and tags using "/>". I suspect there are differences using one or the other, but I can't find any rules to govern the right way to end a tag.

for example:

First name: <input type="text" name="fname">
First name: <input type="text" name="fname"/>

The behaviour is a wee bit different between one to the other.



Can anyone tell me what the rule/rules are?

Thanks,
jPaul