Element ToHtml method should be standard when it is selfclosing.

before ToHtml example:
&lt;p&gt;&lt;img src="xxx"&gt;&lt;/p&gt;

after ToHtml example:
&lt;p&gt;&lt;img src="xxx"<span style="color:red;">/<span>&gt;&lt;/p&gt;

I think now will better.