W3C home > Mailing lists > Public > www-validator-css@w3.org > March 2015

Re: Slash or no slash?

From: David Dorward <david@dorward.me.uk>
Date: Thu, 05 Mar 2015 13:21:08 +0000
To: "Bill Byrd" <bbrrt@epbfi.com>
Cc: www-validator-css@w3.org
Message-ID: <49AD2D39-19B2-4429-9927-47292648B70F@dorward.me.uk>
On 3 Mar 2015, at 14:20, Bill Byrd wrote:

> Immediately below your snippet for the “passed the validation” badge, you have this...
>
> (close the img tag with > instead of /> if using HTML <= 4.01)
>
> To me, that suggests that HTML5 user WOULD use the forward slash.
> That’s not correct is it?

It is correct. The `/` character is optional in HTML 5.

See [Stackoverflow: Are self-closing tags valid in HTML5?][1]


[1]: http://stackoverflow.com/questions/3558119/are-self-closing-tags-valid-in-html5

-- 
David Dorward
http://dorward.co.uk/
Received on Thursday, 5 March 2015 13:21:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:16 UTC