Monday 20 August 2018

html - Properly closing or self-closing tags in HTML5

I have a question relating to closing HTML tags that are self-closing.



Which is more proper?



1. 

2.
3.


Also, if anyone has a good alternative for this tag, for example:




OR




This article helped me some-what.



I use for my doc type.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...