Tratando de resolver un error del proyecto Check Wikipedia, en particular el Error #2 sobre las etiquetas de salto de línea, me he encontrado con un uso bastante similar de las formas <br>
y <br />
, y me ha asaltado la duda sobre cuál es la forma más adecuada, si es que la hay, por lo que me he decidido a hacer un pequeño resumen de pros y contras.
Un poco de contexto:
<br>
.<br />
.Buscando en la propia Wikipedia:
The MediaWiki software converts valid forms like<br>
,<br/>
, and<br >
to<br />
. It also converts the invalid form</br>
to<br />
. The invalid forms< br>
and</ br>
are not converted and will not create line breaks.While valid forms without the
Please correct invalid occurrences – such as/
(such as<br>
or<br >
) will work properly in the rendered page, the uncommon form<br >
can break several of the available syntax highlighters for wiki code in the editing view (mis-highlighting all text in the page after the occurrence of that tag), and so should be avoided. As of April 2019, the rather common form<br>
also causes this incorrect display in some of them, and is thus better avoided for the time being.</br>
,< br>
, or</ br>
– to<br />
as you encounter them, though preferably as a part of a more substantive edit.
Como curiosidad estadística, he hecho cuentas de las ocurrencias actuales de las distintas formas: