I did part of the validation of my workflow because it helps me to make the wrong mistakes. And although I do not consider empty elements as a problem, it negates some of the validator usage values if I have to mentally parse the list of warnings each time and decide whether the warning is important or not. Therefore, I try to ensure that my pages are error-free and error-free, so that a quick look at the HTML Validator icon in the Firefox status bar only changes when there is a real problem. To this end, I keep the empty elements "non-empty" by inserting an empty comment.
<span></span>
(At least this works with the Tidy validator.)
Now, to say the least, I do not think that this is necessary at all for many situations. It makes perfect sense to think that adding eight extra characters to your code just to avoid a validator warning is ridiculous. But it works for me.
David kolar
source share