3 ms·
You mean </br>, presumably.
by foobarbecue 3y ago
You mean </br>, presumably.
- throwaway_no 3y ago<br /> is a self closing tag. This is used in XML / XHTML for elements that have no contents. It is a valid short form of <br></br>
- thinkingemote 3y agotechnically <br></br> is not allowed to have an end tag in the HTML spec https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br so it should be <br> on its own or <br />
- naniwaduni 3y agoA silly corner of the spec, considering that this is a spec that specifies exactly how to handle e.g. misnested elements and admits plenty of other things that read intuitively as standardized sloppiness.
- midasuni 3y agoNo. <br></br> is shortened to <br/>
- deleted 3y ago[deleted]
- foobarbecue 3y agoWow, thanks everyone... it seems I've misunderstood this all these years.
- pests 3y agoYou see this a lot in React/JSX too. Saves seme typing and noise inserting a component with no children.
- deleted 3y ago[deleted]