Jump to content

Template talk:Image

Page contents not supported in other languages.
Add topic
From Wikiversity
Latest comment: 8 years ago by Dave Braunschweig in topic Invalid HTML

Invalid HTML

[edit source]

<div style="clear: both;" /> should be <br style="clear: both;"/>. <div> cannot self-close in HTML5. --Unready (discusscontribs) 14:22, 12 November 2016 (UTC)Reply

@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 (discusscontribs) 17:29, 12 November 2016 (UTC)Reply