CodeIgniter Forums
W3C Self-closing tag syntax in text/html documents is widely discouraged - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: W3C Self-closing tag syntax in text/html documents is widely discouraged (/showthread.php?tid=83552)



W3C Self-closing tag syntax in text/html documents is widely discouraged - bbsoft84 - 10-03-2022

Hello.
The W3C validator displays a warning for : Self-closing tag syntax in text/html documents is widely discouraged.
In form_helper the code rendered ends with "/>" or the validator require just a simple ">".
Will an update be released?
Thanks.


RE: W3C Self-closing tag syntax in text/html documents is widely discouraged - paulbalandan - 10-07-2022

What function of the form_helper are you using?


RE: W3C Self-closing tag syntax in text/html documents is widely discouraged - bbsoft84 - 10-07-2022

(10-07-2022, 08:42 AM)paulbalandan Wrote: What function of the form_helper are you using?

Hello, I'm using form_input, form_upload and form_checkbox.
I created form_helper file in App/Helpers and I made correction but I think that it would be better if an update fix that.


RE: W3C Self-closing tag syntax in text/html documents is widely discouraged - InsiteFX - 10-08-2022

All HTML code should end with just > not />


RE: W3C Self-closing tag syntax in text/html documents is widely discouraged - kenjis - 10-08-2022

I created a dev issue: https://github.com/codeigniter4/CodeIgniter4/issues/6649
PRs are welcome!