Aren optional closing tags optional any more?
Optional closing tags like
are and have always been optional. However, some popular browsers, like MS Internet Explorer, have problems rendering elements correctly when these tags are omitted. If, for example, the P element is not closed the properties declared to it will involuntarily be ‘inherited’ by the element or elements that follow it. Is one such property is ‘margin-left’ you may end up with a document containing one (or none) word per line. Although optional closing tags are optional it is nevertheless a good idea to use them.Optional closing tags like
are and have always been optional. However, some popular browsers, like IE all versions, have problems rendering elements correctly when these tags are omitted. If, for example, the P element is not closed the properties declared to it will involuntarily be “inherited” by the element or elements that follow it. If one such property is ‘margin-left’ you may end up with a document containing one (or none) word per line. Although optional closing tags are optional it is nevertheless a good idea to use them.