[wp-trac] [WordPress Trac] #41904: Html Invalid

WordPress Trac noreply at wordpress.org
Mon Sep 18 14:18:36 UTC 2017


#41904: Html Invalid
--------------------------+------------------------------
 Reporter:  adnan.limdi   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by Soean):

 Hey Adnan,
 >The img element is a void element. An img element must have a start tag
 but must not have an end tag.
 Source: http://w3c.github.io/html-reference/img.html#img

 The '/' at the end of a void element was just necessary in the old XHTML.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41904#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list