Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Aren optional closing tags optional any more?

closing Tags
0
Posted

Aren optional closing tags optional any more?

0

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.

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.