Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1313

Administration Joomla! 5.x • Re: Strange behavior of readmore in text

$
0
0
<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
Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.
it will send you to this page for more info: https://github.com/validator/validator/ ... lf-closing

Statistics: Posted by Mr. Wimpy — Tue Sep 03, 2024 7:35 am



Viewing all articles
Browse latest Browse all 1313

Trending Articles