<hr> and <hr /> are both valid html.
Most of us learned to end a void element with a /, like <img />, <br />, <hr /> etc.
However the correct syntax for html5 is <img>,<br>,<hr> etc. (Read links I posted earlier)
The closing slash / is optional, used for compatibility between html and xhtml, and ignored by browsers.
Look at the code for img for intro/full images in Joomla: no closing /.
Links in the head (still) do have a /. Validate your Joomla site with validator.w3.org
<link />s get a info flag
Most of us learned to end a void element with a /, like <img />, <br />, <hr /> etc.
However the correct syntax for html5 is <img>,<br>,<hr> etc. (Read links I posted earlier)
The closing slash / is optional, used for compatibility between html and xhtml, and ignored by browsers.
Look at the code for img for intro/full images in Joomla: no closing /.
Links in the head (still) do have a /. Validate your Joomla site with validator.w3.org
<link />s get a info flag
it will send you to this page for more info: https://github.com/validator/validator/ ... lf-closingTrailing slash on void elements has no effect and interacts badly with unquoted attribute values.
Statistics: Posted by Mr. Wimpy — Tue Sep 03, 2024 7:35 am