Template talk:Image
Latest comment: 8 years ago by Dave Braunschweig in topic Invalid HTML
Invalid HTML
edit<div style="clear: both;" />
should be <br style="clear: both;"/>
. <div>
cannot self-close in HTML5. --Unready (discuss • contribs) 14:22, 12 November 2016 (UTC)
- @Unready:
<div style="clear: both;" />
and<br style="clear: both;" />
are not equivalent. The<br>
generates a line break. Please use {{Clear}} instead. In general, we should avoid coding HTML in Wikitext and use templates for formatting. That way, as HTML standards change, pages can be corrected by updating the templates rather than updating all pages individually. It also avoids many of the coding errors you've been finding and fixing recently. -- Dave Braunschweig (discuss • contribs) 17:29, 12 November 2016 (UTC)